<!-- HTML header for doxygen 1.8.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/xhtml;charset=utf-8" http-equiv="Content-Type"/>
<meta content="IE=9" http-equiv="X-UA-Compatible"/>
<meta content="Doxygen 1.8.13" name="generator"/>
<title>OpenCV: Operations on arrays</title>
<link href="../../opencv.ico" rel="shortcut icon" type="image/x-icon"/>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script src="../../jquery.js" type="text/javascript"></script>
<script src="../../dynsections.js" type="text/javascript"></script>
<script src="../../tutorial-utils.js" type="text/javascript"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script src="../../search/searchdata.js" type="text/javascript"></script>
<script src="../../search/search.js" type="text/javascript"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
//<![CDATA[
MathJax.Hub.Config(
{
  TeX: {
      Macros: {
          matTT: [ "\\[ \\left|\\begin{array}{ccc} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{array}\\right| \\]", 9],
          fork: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ \\end{array} \\right.", 4],
          forkthree: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ \\end{array} \\right.", 6],
          forkfour: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ #7 & \\mbox{#8}\\\\ \\end{array} \\right.", 8],
          vecthree: ["\\begin{bmatrix} #1\\\\ #2\\\\ #3 \\end{bmatrix}", 3],
          vecthreethree: ["\\begin{bmatrix} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{bmatrix}", 9],
          cameramatrix: ["#1 = \\begin{bmatrix} f_x & 0 & c_x\\\\ 0 & f_y & c_y\\\\ 0 & 0 & 1 \\end{bmatrix}", 1],
          distcoeffs: ["(k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6 [, s_1, s_2, s_3, s_4[, \\tau_x, \\tau_y]]]]) \\text{ of 4, 5, 8, 12 or 14 elements}"],
          distcoeffsfisheye: ["(k_1, k_2, k_3, k_4)"],
          hdotsfor: ["\\dots", 1],
          mathbbm: ["\\mathbb{#1}", 1],
          bordermatrix: ["\\matrix{#1}", 1]
      }
  }
}
);
//]]>
</script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js" type="text/javascript"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css"/>
<link href="../../stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<!--#include virtual="/google-search.html"-->
<table cellpadding="0" cellspacing="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../opencv-logo-small.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenCV
    <span id="projectnumber">4.5.2</span>
   </div>
   <div id="projectbrief">Open Source Computer Vision</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<script src="../../menudata.js" type="text/javascript"></script>
<script src="../../menu.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow" onkeydown="return searchBox.OnSearchSelectKey(event)" onmouseout="return searchBox.OnSearchSelectHide()" onmouseover="return searchBox.OnSearchSelectShow()">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe frameborder="0" id="MSearchResults" name="MSearchResults" src="javascript:void(0)">
</iframe>
</div>
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> |
<a href="#enum-members">Enumerations</a> |
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Operations on arrays<div class="ingroups"><a class="el" href="../../d0/de1/group__core.html">Core functionality</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td align="right" class="memItemLeft" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d59/classcv_1_1LDA.html">cv::LDA</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Linear Discriminant Analysis.  <a href="../../db/d59/classcv_1_1LDA.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td align="right" class="memItemLeft" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d8d/classcv_1_1PCA.html">cv::PCA</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Principal Component Analysis.  <a href="../../d3/d8d/classcv_1_1PCA.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td align="right" class="memItemLeft" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/dd6/classcv_1_1RNG.html">cv::RNG</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Random Number Generator.  <a href="../../d1/dd6/classcv_1_1RNG.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td align="right" class="memItemLeft" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d3e/classcv_1_1RNG__MT19937.html">cv::RNG_MT19937</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Mersenne Twister random number generator.  <a href="../../db/d3e/classcv_1_1RNG__MT19937.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td align="right" class="memItemLeft" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/df7/classcv_1_1SVD.html">cv::SVD</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Singular Value Decomposition.  <a href="../../df/df7/classcv_1_1SVD.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:ga209f2f4869e304c82d07739337eae7c5"><td align="right" class="memItemLeft" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga209f2f4869e304c82d07739337eae7c5">cv::BorderTypes</a> { <br/>
  <a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5aed2e4346047e265c8c5a6d0276dcd838">cv::BORDER_CONSTANT</a> = 0, 
<br/>
  <a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5aa1de4cff95e3377d6d0cbe7569bd4e9f">cv::BORDER_REPLICATE</a> = 1, 
<br/>
  <a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5a815c8a89b7cb206dcba14d11b7560f4b">cv::BORDER_REFLECT</a> = 2, 
<br/>
  <a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5a697c1b011884a7c2bdc0e5caf7955661">cv::BORDER_WRAP</a> = 3, 
<br/>
  <a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5ab3c5a6143d8120b95005fa7105a10bb4">cv::BORDER_REFLECT_101</a> = 4, 
<br/>
  <a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5a886a5eb6b466854d63f9e742d5c8eefe">cv::BORDER_TRANSPARENT</a> = 5, 
<br/>
  <a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5a119fb22eda11675d2e00426d334a1a81">cv::BORDER_REFLECT101</a> = BORDER_REFLECT_101, 
<br/>
  <a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5afe14c13a4ea8b8e3b3ef399013dbae01">cv::BORDER_DEFAULT</a> = BORDER_REFLECT_101, 
<br/>
  <a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5a4fcb77ae62e1e1336c1c2b24a441995c">cv::BORDER_ISOLATED</a> = 16
<br/>
 }</td></tr>
<tr class="separator:ga209f2f4869e304c82d07739337eae7c5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga0cc47ff833d40b58ecbe1d609a53d784"><td align="right" class="memItemLeft" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga0cc47ff833d40b58ecbe1d609a53d784">cv::CmpTypes</a> { <br/>
  <a class="el" href="../../d2/de8/group__core__array.html#gga0cc47ff833d40b58ecbe1d609a53d784a878fbe5d23e277c3d87128a8844e639d">cv::CMP_EQ</a> = 0, 
<br/>
  <a class="el" href="../../d2/de8/group__core__array.html#gga0cc47ff833d40b58ecbe1d609a53d784ada5167eceeaca5a3dc9d7f6a96255827">cv::CMP_GT</a> = 1, 
<br/>
  <a class="el" href="../../d2/de8/group__core__array.html#gga0cc47ff833d40b58ecbe1d609a53d784a0dd1b1a6fa443343f44aef8c52942625">cv::CMP_GE</a> = 2, 
<br/>
  <a class="el" href="../../d2/de8/group__core__array.html#gga0cc47ff833d40b58ecbe1d609a53d784a5a747de43c04d59b6e51a2959a8af105">cv::CMP_LT</a> = 3, 
<br/>
  <a class="el" href="../../d2/de8/group__core__array.html#gga0cc47ff833d40b58ecbe1d609a53d784a45cc5be6c7f35292542aa7c00ce4cf1c">cv::CMP_LE</a> = 4, 
<br/>
  <a class="el" href="../../d2/de8/group__core__array.html#gga0cc47ff833d40b58ecbe1d609a53d784a7997997a104b827c918884b6c5ee0e59">cv::CMP_NE</a> = 5
<br/>
 }<tr class="memdesc:ga0cc47ff833d40b58ecbe1d609a53d784"><td class="mdescLeft"> </td><td class="mdescRight">comparison types  <a href="../../d2/de8/group__core__array.html#ga0cc47ff833d40b58ecbe1d609a53d784">More...</a><br/></td></tr>
</td></tr>
<tr class="separator:ga0cc47ff833d40b58ecbe1d609a53d784"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaaf9ea5dcc392d5ae04eacb9920b9674c"><td align="right" class="memItemLeft" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#gaaf9ea5dcc392d5ae04eacb9920b9674c">cv::DecompTypes</a> { <br/>
  <a class="el" href="../../d2/de8/group__core__array.html#ggaaf9ea5dcc392d5ae04eacb9920b9674ca247a3455cd64973152e17e26999dc024">cv::DECOMP_LU</a> = 0, 
<br/>
  <a class="el" href="../../d2/de8/group__core__array.html#ggaaf9ea5dcc392d5ae04eacb9920b9674ca523b676c90c7a1d2841b1267ba9ba614">cv::DECOMP_SVD</a> = 1, 
<br/>
  <a class="el" href="../../d2/de8/group__core__array.html#ggaaf9ea5dcc392d5ae04eacb9920b9674ca3fc1b148b39f0ca4ac5fc6e0f1b7198b">cv::DECOMP_EIG</a> = 2, 
<br/>
  <a class="el" href="../../d2/de8/group__core__array.html#ggaaf9ea5dcc392d5ae04eacb9920b9674ca33cf860f98004310374a81d2c01715da">cv::DECOMP_CHOLESKY</a> = 3, 
<br/>
  <a class="el" href="../../d2/de8/group__core__array.html#ggaaf9ea5dcc392d5ae04eacb9920b9674cab086be5a080138d7db9b11dab378d845">cv::DECOMP_QR</a> = 4, 
<br/>
  <a class="el" href="../../d2/de8/group__core__array.html#ggaaf9ea5dcc392d5ae04eacb9920b9674ca13eaae0241295166140291223db12166">cv::DECOMP_NORMAL</a> = 16
<br/>
 }<tr class="memdesc:gaaf9ea5dcc392d5ae04eacb9920b9674c"><td class="mdescLeft"> </td><td class="mdescRight">matrix decomposition types  <a href="../../d2/de8/group__core__array.html#gaaf9ea5dcc392d5ae04eacb9920b9674c">More...</a><br/></td></tr>
</td></tr>
<tr class="separator:gaaf9ea5dcc392d5ae04eacb9920b9674c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaf4dde112b483b38175621befedda1f1c"><td align="right" class="memItemLeft" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#gaf4dde112b483b38175621befedda1f1c">cv::DftFlags</a> { <br/>
  <a class="el" href="../../d2/de8/group__core__array.html#ggaf4dde112b483b38175621befedda1f1ca4e01d7e91cae1dbb68a26767d7b636be">cv::DFT_INVERSE</a> = 1, 
<br/>
  <a class="el" href="../../d2/de8/group__core__array.html#ggaf4dde112b483b38175621befedda1f1ca74746fb171aa4bfc08ace28d73f52375">cv::DFT_SCALE</a> = 2, 
<br/>
  <a class="el" href="../../d2/de8/group__core__array.html#ggaf4dde112b483b38175621befedda1f1ca1744dc1cf1249944bc841e78c1565b7f">cv::DFT_ROWS</a> = 4, 
<br/>
  <a class="el" href="../../d2/de8/group__core__array.html#ggaf4dde112b483b38175621befedda1f1ca07b45079b38d60e7837dfb666a55299b">cv::DFT_COMPLEX_OUTPUT</a> = 16, 
<br/>
  <a class="el" href="../../d2/de8/group__core__array.html#ggaf4dde112b483b38175621befedda1f1ca28347c7846e5eaed83e019cd003e8e03">cv::DFT_REAL_OUTPUT</a> = 32, 
<br/>
  <a class="el" href="../../d2/de8/group__core__array.html#ggaf4dde112b483b38175621befedda1f1caa5ccb5f191a65e2d11a5ceba1f886efd">cv::DFT_COMPLEX_INPUT</a> = 64, 
<br/>
  <a class="el" href="../../d2/de8/group__core__array.html#ggaf4dde112b483b38175621befedda1f1ca7d18108cbce9d52e6496633c713587da">cv::DCT_INVERSE</a> = DFT_INVERSE, 
<br/>
  <a class="el" href="../../d2/de8/group__core__array.html#ggaf4dde112b483b38175621befedda1f1ca49bc8de8aedbe7fabb8960445133e494">cv::DCT_ROWS</a> = DFT_ROWS
<br/>
 }</td></tr>
<tr class="separator:gaf4dde112b483b38175621befedda1f1c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga66643400559695a653d08e2000809060"><td align="right" class="memItemLeft" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga66643400559695a653d08e2000809060">cv::GemmFlags</a> { <br/>
  <a class="el" href="../../d2/de8/group__core__array.html#gga66643400559695a653d08e2000809060a04b6ef29f9ae9332d139828ffc7c1f39">cv::GEMM_1_T</a> = 1, 
<br/>
  <a class="el" href="../../d2/de8/group__core__array.html#gga66643400559695a653d08e2000809060a188bdf58e57b4b8f0685451ba15cdd2d">cv::GEMM_2_T</a> = 2, 
<br/>
  <a class="el" href="../../d2/de8/group__core__array.html#gga66643400559695a653d08e2000809060a6ba75d49e23663b42c4cc5dcd1cc5752">cv::GEMM_3_T</a> = 4
<br/>
 }<tr class="memdesc:ga66643400559695a653d08e2000809060"><td class="mdescLeft"> </td><td class="mdescRight">generalized matrix multiplication flags  <a href="../../d2/de8/group__core__array.html#ga66643400559695a653d08e2000809060">More...</a><br/></td></tr>
</td></tr>
<tr class="separator:ga66643400559695a653d08e2000809060"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gad12cefbcb5291cf958a85b4b67b6149f"><td align="right" class="memItemLeft" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#gad12cefbcb5291cf958a85b4b67b6149f">cv::NormTypes</a> { <br/>
  <a class="el" href="../../d2/de8/group__core__array.html#ggad12cefbcb5291cf958a85b4b67b6149fad33872d928c74f8a49d1ba06d72aefc3">cv::NORM_INF</a> = 1, 
<br/>
  <a class="el" href="../../d2/de8/group__core__array.html#ggad12cefbcb5291cf958a85b4b67b6149fab55c78ff204a979026c026ea19de65c9">cv::NORM_L1</a> = 2, 
<br/>
  <a class="el" href="../../d2/de8/group__core__array.html#ggad12cefbcb5291cf958a85b4b67b6149fa7bacbe84d400336a8f26297d8e80e3a2">cv::NORM_L2</a> = 4, 
<br/>
  <a class="el" href="../../d2/de8/group__core__array.html#ggad12cefbcb5291cf958a85b4b67b6149fabe948af03c9289b0dd7e663d5c035f5a">cv::NORM_L2SQR</a> = 5, 
<br/>
  <a class="el" href="../../d2/de8/group__core__array.html#ggad12cefbcb5291cf958a85b4b67b6149fa4b063afd04aebb8dd07085a1207da727">cv::NORM_HAMMING</a> = 6, 
<br/>
  <a class="el" href="../../d2/de8/group__core__array.html#ggad12cefbcb5291cf958a85b4b67b6149fa7fab9cda83e79380cd273c49de8e3231">cv::NORM_HAMMING2</a> = 7, 
<br/>
  <a class="el" href="../../d2/de8/group__core__array.html#ggad12cefbcb5291cf958a85b4b67b6149faaabf1ea549554e2cbdfde2acfcfc5374">cv::NORM_TYPE_MASK</a> = 7, 
<br/>
  <a class="el" href="../../d2/de8/group__core__array.html#ggad12cefbcb5291cf958a85b4b67b6149fa0a85f9203dcdf3fbc1cca589b6f5df39">cv::NORM_RELATIVE</a> = 8, 
<br/>
  <a class="el" href="../../d2/de8/group__core__array.html#ggad12cefbcb5291cf958a85b4b67b6149fa9f0c1c342a18114d47b516a88e29822e">cv::NORM_MINMAX</a> = 32
<br/>
 }</td></tr>
<tr class="separator:gad12cefbcb5291cf958a85b4b67b6149f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga14cdedf2933367eb9395ec16798af994"><td align="right" class="memItemLeft" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga14cdedf2933367eb9395ec16798af994">cv::ReduceTypes</a> { <br/>
  <a class="el" href="../../d2/de8/group__core__array.html#gga14cdedf2933367eb9395ec16798af994a101441e283ed69f20cfc5468114f9867">cv::REDUCE_SUM</a> = 0, 
<br/>
  <a class="el" href="../../d2/de8/group__core__array.html#gga14cdedf2933367eb9395ec16798af994a85f039992a454ca367bc190529766c7e">cv::REDUCE_AVG</a> = 1, 
<br/>
  <a class="el" href="../../d2/de8/group__core__array.html#gga14cdedf2933367eb9395ec16798af994a928b4c3eb0a038ea41b61d122c0495ee">cv::REDUCE_MAX</a> = 2, 
<br/>
  <a class="el" href="../../d2/de8/group__core__array.html#gga14cdedf2933367eb9395ec16798af994a1f40a2ed66c8a8b8198186da47ec7b76">cv::REDUCE_MIN</a> = 3
<br/>
 }</td></tr>
<tr class="separator:ga14cdedf2933367eb9395ec16798af994"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga6f45d55c0b1cc9d97f5353a7c8a7aac2"><td align="right" class="memItemLeft" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga6f45d55c0b1cc9d97f5353a7c8a7aac2">cv::RotateFlags</a> { <br/>
  <a class="el" href="../../d2/de8/group__core__array.html#gga6f45d55c0b1cc9d97f5353a7c8a7aac2a0419ea25335f7df5c771a06551a91d2b">cv::ROTATE_90_CLOCKWISE</a> = 0, 
<br/>
  <a class="el" href="../../d2/de8/group__core__array.html#gga6f45d55c0b1cc9d97f5353a7c8a7aac2aa65044d24dcdbd15f48fe3887d2e4b16">cv::ROTATE_180</a> = 1, 
<br/>
  <a class="el" href="../../d2/de8/group__core__array.html#gga6f45d55c0b1cc9d97f5353a7c8a7aac2a15ff5052b63aa43a334c865ebd8bb2fd">cv::ROTATE_90_COUNTERCLOCKWISE</a> = 2
<br/>
 }</td></tr>
<tr class="separator:ga6f45d55c0b1cc9d97f5353a7c8a7aac2"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga6fef31bc8c4071cbc114a758a2b79c14"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga6fef31bc8c4071cbc114a758a2b79c14">cv::absdiff</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src1, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src2, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst)</td></tr>
<tr class="memdesc:ga6fef31bc8c4071cbc114a758a2b79c14"><td class="mdescLeft"> </td><td class="mdescRight">Calculates the per-element absolute difference between two arrays or between an array and a scalar.  <a href="../../d2/de8/group__core__array.html#ga6fef31bc8c4071cbc114a758a2b79c14">More...</a><br/></td></tr>
<tr class="separator:ga6fef31bc8c4071cbc114a758a2b79c14"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga10ac1bfb180e2cfda1701d06c24fdbd6"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga10ac1bfb180e2cfda1701d06c24fdbd6">cv::add</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src1, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src2, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> mask=<a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>(), int dtype=-1)</td></tr>
<tr class="memdesc:ga10ac1bfb180e2cfda1701d06c24fdbd6"><td class="mdescLeft"> </td><td class="mdescRight">Calculates the per-element sum of two arrays or an array and a scalar.  <a href="../../d2/de8/group__core__array.html#ga10ac1bfb180e2cfda1701d06c24fdbd6">More...</a><br/></td></tr>
<tr class="separator:ga10ac1bfb180e2cfda1701d06c24fdbd6"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gafafb2513349db3bcff51f54ee5592a19"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#gafafb2513349db3bcff51f54ee5592a19">cv::addWeighted</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src1, double alpha, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src2, double beta, double gamma, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst, int dtype=-1)</td></tr>
<tr class="memdesc:gafafb2513349db3bcff51f54ee5592a19"><td class="mdescLeft"> </td><td class="mdescRight">Calculates the weighted sum of two arrays.  <a href="../../d2/de8/group__core__array.html#gafafb2513349db3bcff51f54ee5592a19">More...</a><br/></td></tr>
<tr class="separator:gafafb2513349db3bcff51f54ee5592a19"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga4ba778a1c57f83233b1d851c83f5a622"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga4ba778a1c57f83233b1d851c83f5a622">cv::batchDistance</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src1, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src2, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dist, int dtype, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> nidx, int normType=<a class="el" href="../../d2/de8/group__core__array.html#ggad12cefbcb5291cf958a85b4b67b6149fa7bacbe84d400336a8f26297d8e80e3a2">NORM_L2</a>, int K=0, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> mask=<a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>(), int update=0, bool crosscheck=false)</td></tr>
<tr class="memdesc:ga4ba778a1c57f83233b1d851c83f5a622"><td class="mdescLeft"> </td><td class="mdescRight">naive nearest neighbor finder  <a href="../../d2/de8/group__core__array.html#ga4ba778a1c57f83233b1d851c83f5a622">More...</a><br/></td></tr>
<tr class="separator:ga4ba778a1c57f83233b1d851c83f5a622"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga60b4d04b251ba5eb1392c34425497e14"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga60b4d04b251ba5eb1392c34425497e14">cv::bitwise_and</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src1, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src2, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> mask=<a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>())</td></tr>
<tr class="memdesc:ga60b4d04b251ba5eb1392c34425497e14"><td class="mdescLeft"> </td><td class="mdescRight">computes bitwise conjunction of the two arrays (dst = src1 &amp; src2) Calculates the per-element bit-wise conjunction of two arrays or an array and a scalar.  <a href="../../d2/de8/group__core__array.html#ga60b4d04b251ba5eb1392c34425497e14">More...</a><br/></td></tr>
<tr class="separator:ga60b4d04b251ba5eb1392c34425497e14"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga0002cf8b418479f4cb49a75442baee2f"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga0002cf8b418479f4cb49a75442baee2f">cv::bitwise_not</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> mask=<a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>())</td></tr>
<tr class="memdesc:ga0002cf8b418479f4cb49a75442baee2f"><td class="mdescLeft"> </td><td class="mdescRight">Inverts every bit of an array.  <a href="../../d2/de8/group__core__array.html#ga0002cf8b418479f4cb49a75442baee2f">More...</a><br/></td></tr>
<tr class="separator:ga0002cf8b418479f4cb49a75442baee2f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gab85523db362a4e26ff0c703793a719b4"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#gab85523db362a4e26ff0c703793a719b4">cv::bitwise_or</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src1, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src2, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> mask=<a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>())</td></tr>
<tr class="memdesc:gab85523db362a4e26ff0c703793a719b4"><td class="mdescLeft"> </td><td class="mdescRight">Calculates the per-element bit-wise disjunction of two arrays or an array and a scalar.  <a href="../../d2/de8/group__core__array.html#gab85523db362a4e26ff0c703793a719b4">More...</a><br/></td></tr>
<tr class="separator:gab85523db362a4e26ff0c703793a719b4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga84b2d8188ce506593dcc3f8cd00e8e2c"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga84b2d8188ce506593dcc3f8cd00e8e2c">cv::bitwise_xor</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src1, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src2, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> mask=<a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>())</td></tr>
<tr class="memdesc:ga84b2d8188ce506593dcc3f8cd00e8e2c"><td class="mdescLeft"> </td><td class="mdescRight">Calculates the per-element bit-wise "exclusive or" operation on two arrays or an array and a scalar.  <a href="../../d2/de8/group__core__array.html#ga84b2d8188ce506593dcc3f8cd00e8e2c">More...</a><br/></td></tr>
<tr class="separator:ga84b2d8188ce506593dcc3f8cd00e8e2c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga247f571aa6244827d3d798f13892da58"><td align="right" class="memItemLeft" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga247f571aa6244827d3d798f13892da58">cv::borderInterpolate</a> (int p, int len, int borderType)</td></tr>
<tr class="memdesc:ga247f571aa6244827d3d798f13892da58"><td class="mdescLeft"> </td><td class="mdescRight">Computes the source location of an extrapolated pixel.  <a href="../../d2/de8/group__core__array.html#ga247f571aa6244827d3d798f13892da58">More...</a><br/></td></tr>
<tr class="separator:ga247f571aa6244827d3d798f13892da58"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gae6ffa9354633f984246945d52823165d"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#gae6ffa9354633f984246945d52823165d">cv::calcCovarMatrix</a> (const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> *samples, int nsamples, <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp;covar, <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp;<a class="el" href="../../d2/de8/group__core__array.html#ga191389f8a0e58180bb13a727782cd461">mean</a>, int flags, int ctype=<a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga30a562691cc5987bc88eb7bb7a8faf2b">CV_64F</a>)</td></tr>
<tr class="memdesc:gae6ffa9354633f984246945d52823165d"><td class="mdescLeft"> </td><td class="mdescRight">Calculates the covariance matrix of a set of vectors.  <a href="../../d2/de8/group__core__array.html#gae6ffa9354633f984246945d52823165d">More...</a><br/></td></tr>
<tr class="separator:gae6ffa9354633f984246945d52823165d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga017122d912af19d7d0d2cccc2d63819f"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga017122d912af19d7d0d2cccc2d63819f">cv::calcCovarMatrix</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> samples, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> covar, <a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> <a class="el" href="../../d2/de8/group__core__array.html#ga191389f8a0e58180bb13a727782cd461">mean</a>, int flags, int ctype=<a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga30a562691cc5987bc88eb7bb7a8faf2b">CV_64F</a>)</td></tr>
<tr class="separator:ga017122d912af19d7d0d2cccc2d63819f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gac5f92f48ec32cacf5275969c33ee837d"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#gac5f92f48ec32cacf5275969c33ee837d">cv::cartToPolar</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> x, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> y, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> <a class="el" href="../../d2/de8/group__core__array.html#ga6d3b097586bca4409873d64a90fe64c3">magnitude</a>, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> angle, bool angleInDegrees=false)</td></tr>
<tr class="memdesc:gac5f92f48ec32cacf5275969c33ee837d"><td class="mdescLeft"> </td><td class="mdescRight">Calculates the magnitude and angle of 2D vectors.  <a href="../../d2/de8/group__core__array.html#gac5f92f48ec32cacf5275969c33ee837d">More...</a><br/></td></tr>
<tr class="separator:gac5f92f48ec32cacf5275969c33ee837d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga2bd19d89cae59361416736f87e3c7a64"><td align="right" class="memItemLeft" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga2bd19d89cae59361416736f87e3c7a64">cv::checkRange</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> a, bool quiet=true, <a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> *pos=0, double minVal=-DBL_MAX, double maxVal=DBL_MAX)</td></tr>
<tr class="memdesc:ga2bd19d89cae59361416736f87e3c7a64"><td class="mdescLeft"> </td><td class="mdescRight">Checks every element of an input array for invalid values.  <a href="../../d2/de8/group__core__array.html#ga2bd19d89cae59361416736f87e3c7a64">More...</a><br/></td></tr>
<tr class="separator:ga2bd19d89cae59361416736f87e3c7a64"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga303cfb72acf8cbb36d884650c09a3a97"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga303cfb72acf8cbb36d884650c09a3a97">cv::compare</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src1, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src2, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst, int cmpop)</td></tr>
<tr class="memdesc:ga303cfb72acf8cbb36d884650c09a3a97"><td class="mdescLeft"> </td><td class="mdescRight">Performs the per-element comparison of two arrays or an array and scalar value.  <a href="../../d2/de8/group__core__array.html#ga303cfb72acf8cbb36d884650c09a3a97">More...</a><br/></td></tr>
<tr class="separator:ga303cfb72acf8cbb36d884650c09a3a97"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga6847337c0c55769e115a70e0f011b5ca"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga6847337c0c55769e115a70e0f011b5ca">cv::completeSymm</a> (<a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> m, bool lowerToUpper=false)</td></tr>
<tr class="memdesc:ga6847337c0c55769e115a70e0f011b5ca"><td class="mdescLeft"> </td><td class="mdescRight">Copies the lower or the upper half of a square matrix to its another half.  <a href="../../d2/de8/group__core__array.html#ga6847337c0c55769e115a70e0f011b5ca">More...</a><br/></td></tr>
<tr class="separator:ga6847337c0c55769e115a70e0f011b5ca"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga9c25d9ef44a2a48ecc3774b30cb80082"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga9c25d9ef44a2a48ecc3774b30cb80082">cv::convertFp16</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst)</td></tr>
<tr class="memdesc:ga9c25d9ef44a2a48ecc3774b30cb80082"><td class="mdescLeft"> </td><td class="mdescRight">Converts an array to half precision floating number.  <a href="../../d2/de8/group__core__array.html#ga9c25d9ef44a2a48ecc3774b30cb80082">More...</a><br/></td></tr>
<tr class="separator:ga9c25d9ef44a2a48ecc3774b30cb80082"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga3460e9c9f37b563ab9dd550c4d8c4e7d"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga3460e9c9f37b563ab9dd550c4d8c4e7d">cv::convertScaleAbs</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst, double alpha=1, double beta=0)</td></tr>
<tr class="memdesc:ga3460e9c9f37b563ab9dd550c4d8c4e7d"><td class="mdescLeft"> </td><td class="mdescRight">Scales, calculates absolute values, and converts the result to 8-bit.  <a href="../../d2/de8/group__core__array.html#ga3460e9c9f37b563ab9dd550c4d8c4e7d">More...</a><br/></td></tr>
<tr class="separator:ga3460e9c9f37b563ab9dd550c4d8c4e7d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga2ac1049c2c3dd25c2b41bffe17658a36"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga2ac1049c2c3dd25c2b41bffe17658a36">cv::copyMakeBorder</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst, int top, int bottom, int left, int right, int borderType, const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp;value=<a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a>())</td></tr>
<tr class="memdesc:ga2ac1049c2c3dd25c2b41bffe17658a36"><td class="mdescLeft"> </td><td class="mdescRight">Forms a border around an image.  <a href="../../d2/de8/group__core__array.html#ga2ac1049c2c3dd25c2b41bffe17658a36">More...</a><br/></td></tr>
<tr class="separator:ga2ac1049c2c3dd25c2b41bffe17658a36"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga931a49489330f998452fc53e96e1719a"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga931a49489330f998452fc53e96e1719a">cv::copyTo</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> mask)</td></tr>
<tr class="memdesc:ga931a49489330f998452fc53e96e1719a"><td class="mdescLeft"> </td><td class="mdescRight">This is an overloaded member function, provided for convenience (python) Copies the matrix to another one. When the operation mask is specified, if the <a class="el" href="../../d3/d63/classcv_1_1Mat.html#a55ced2c8d844d683ea9a725c60037ad0" title="Allocates new array data if needed. ">Mat::create</a> call shown above reallocates the matrix, the newly allocated matrix is initialized with all zeros before copying the data.  <a href="../../d2/de8/group__core__array.html#ga931a49489330f998452fc53e96e1719a">More...</a><br/></td></tr>
<tr class="separator:ga931a49489330f998452fc53e96e1719a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaa4b89393263bb4d604e0fe5986723914"><td align="right" class="memItemLeft" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#gaa4b89393263bb4d604e0fe5986723914">cv::countNonZero</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src)</td></tr>
<tr class="memdesc:gaa4b89393263bb4d604e0fe5986723914"><td class="mdescLeft"> </td><td class="mdescRight">Counts non-zero array elements.  <a href="../../d2/de8/group__core__array.html#gaa4b89393263bb4d604e0fe5986723914">More...</a><br/></td></tr>
<tr class="separator:gaa4b89393263bb4d604e0fe5986723914"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga85aad4d668c01fbd64825f589e3696d4"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga85aad4d668c01fbd64825f589e3696d4">cv::dct</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst, int flags=0)</td></tr>
<tr class="memdesc:ga85aad4d668c01fbd64825f589e3696d4"><td class="mdescLeft"> </td><td class="mdescRight">Performs a forward or inverse discrete Cosine transform of 1D or 2D array.  <a href="../../d2/de8/group__core__array.html#ga85aad4d668c01fbd64825f589e3696d4">More...</a><br/></td></tr>
<tr class="separator:ga85aad4d668c01fbd64825f589e3696d4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaf802bd9ca3e07b8b6170645ef0611d0c"><td align="right" class="memItemLeft" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#gaf802bd9ca3e07b8b6170645ef0611d0c">cv::determinant</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> mtx)</td></tr>
<tr class="memdesc:gaf802bd9ca3e07b8b6170645ef0611d0c"><td class="mdescLeft"> </td><td class="mdescRight">Returns the determinant of a square floating-point matrix.  <a href="../../d2/de8/group__core__array.html#gaf802bd9ca3e07b8b6170645ef0611d0c">More...</a><br/></td></tr>
<tr class="separator:gaf802bd9ca3e07b8b6170645ef0611d0c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gadd6cf9baf2b8b704a11b5f04aaf4f39d"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#gadd6cf9baf2b8b704a11b5f04aaf4f39d">cv::dft</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst, int flags=0, int nonzeroRows=0)</td></tr>
<tr class="memdesc:gadd6cf9baf2b8b704a11b5f04aaf4f39d"><td class="mdescLeft"> </td><td class="mdescRight">Performs a forward or inverse Discrete Fourier transform of a 1D or 2D floating-point array.  <a href="../../d2/de8/group__core__array.html#gadd6cf9baf2b8b704a11b5f04aaf4f39d">More...</a><br/></td></tr>
<tr class="separator:gadd6cf9baf2b8b704a11b5f04aaf4f39d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga6db555d30115642fedae0cda05604874"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga6db555d30115642fedae0cda05604874">cv::divide</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src1, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src2, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst, double scale=1, int dtype=-1)</td></tr>
<tr class="memdesc:ga6db555d30115642fedae0cda05604874"><td class="mdescLeft"> </td><td class="mdescRight">Performs per-element division of two arrays or a scalar by an array.  <a href="../../d2/de8/group__core__array.html#ga6db555d30115642fedae0cda05604874">More...</a><br/></td></tr>
<tr class="separator:ga6db555d30115642fedae0cda05604874"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga1f96b569cac4c286642b34eff098138e"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga1f96b569cac4c286642b34eff098138e">cv::divide</a> (double scale, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src2, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst, int dtype=-1)</td></tr>
<tr class="separator:ga1f96b569cac4c286642b34eff098138e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga9fa0d58657f60eaa6c71f6fbb40456e3"><td align="right" class="memItemLeft" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga9fa0d58657f60eaa6c71f6fbb40456e3">cv::eigen</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> eigenvalues, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> eigenvectors=<a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>())</td></tr>
<tr class="memdesc:ga9fa0d58657f60eaa6c71f6fbb40456e3"><td class="mdescLeft"> </td><td class="mdescRight">Calculates eigenvalues and eigenvectors of a symmetric matrix.  <a href="../../d2/de8/group__core__array.html#ga9fa0d58657f60eaa6c71f6fbb40456e3">More...</a><br/></td></tr>
<tr class="separator:ga9fa0d58657f60eaa6c71f6fbb40456e3"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaf51987e03cac8d171fbd2b327cf966f6"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#gaf51987e03cac8d171fbd2b327cf966f6">cv::eigenNonSymmetric</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> eigenvalues, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> eigenvectors)</td></tr>
<tr class="memdesc:gaf51987e03cac8d171fbd2b327cf966f6"><td class="mdescLeft"> </td><td class="mdescRight">Calculates eigenvalues and eigenvectors of a non-symmetric matrix (real eigenvalues only).  <a href="../../d2/de8/group__core__array.html#gaf51987e03cac8d171fbd2b327cf966f6">More...</a><br/></td></tr>
<tr class="separator:gaf51987e03cac8d171fbd2b327cf966f6"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga3e10108e2162c338f1b848af619f39e5"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga3e10108e2162c338f1b848af619f39e5">cv::exp</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst)</td></tr>
<tr class="memdesc:ga3e10108e2162c338f1b848af619f39e5"><td class="mdescLeft"> </td><td class="mdescRight">Calculates the exponent of every array element.  <a href="../../d2/de8/group__core__array.html#ga3e10108e2162c338f1b848af619f39e5">More...</a><br/></td></tr>
<tr class="separator:ga3e10108e2162c338f1b848af619f39e5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gacc6158574aa1f0281878c955bcf35642"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#gacc6158574aa1f0281878c955bcf35642">cv::extractChannel</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst, int coi)</td></tr>
<tr class="memdesc:gacc6158574aa1f0281878c955bcf35642"><td class="mdescLeft"> </td><td class="mdescRight">Extracts a single channel from src (coi is 0-based index)  <a href="../../d2/de8/group__core__array.html#gacc6158574aa1f0281878c955bcf35642">More...</a><br/></td></tr>
<tr class="separator:gacc6158574aa1f0281878c955bcf35642"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaed7df59a3539b4cc0fe5c9c8d7586190"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#gaed7df59a3539b4cc0fe5c9c8d7586190">cv::findNonZero</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> idx)</td></tr>
<tr class="memdesc:gaed7df59a3539b4cc0fe5c9c8d7586190"><td class="mdescLeft"> </td><td class="mdescRight">Returns the list of locations of non-zero pixels.  <a href="../../d2/de8/group__core__array.html#gaed7df59a3539b4cc0fe5c9c8d7586190">More...</a><br/></td></tr>
<tr class="separator:gaed7df59a3539b4cc0fe5c9c8d7586190"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaca7be533e3dac7feb70fc60635adf441"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#gaca7be533e3dac7feb70fc60635adf441">cv::flip</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst, int flipCode)</td></tr>
<tr class="memdesc:gaca7be533e3dac7feb70fc60635adf441"><td class="mdescLeft"> </td><td class="mdescRight">Flips a 2D array around vertical, horizontal, or both axes.  <a href="../../d2/de8/group__core__array.html#gaca7be533e3dac7feb70fc60635adf441">More...</a><br/></td></tr>
<tr class="separator:gaca7be533e3dac7feb70fc60635adf441"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gacb6e64071dffe36434e1e7ee79e7cb35"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#gacb6e64071dffe36434e1e7ee79e7cb35">cv::gemm</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src1, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src2, double alpha, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src3, double beta, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst, int flags=0)</td></tr>
<tr class="memdesc:gacb6e64071dffe36434e1e7ee79e7cb35"><td class="mdescLeft"> </td><td class="mdescRight">Performs generalized matrix multiplication.  <a href="../../d2/de8/group__core__array.html#gacb6e64071dffe36434e1e7ee79e7cb35">More...</a><br/></td></tr>
<tr class="separator:gacb6e64071dffe36434e1e7ee79e7cb35"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga6577a2e59968936ae02eb2edde5de299"><td align="right" class="memItemLeft" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga6577a2e59968936ae02eb2edde5de299">cv::getOptimalDFTSize</a> (int vecsize)</td></tr>
<tr class="memdesc:ga6577a2e59968936ae02eb2edde5de299"><td class="mdescLeft"> </td><td class="mdescRight">Returns the optimal DFT size for a given vector size.  <a href="../../d2/de8/group__core__array.html#ga6577a2e59968936ae02eb2edde5de299">More...</a><br/></td></tr>
<tr class="separator:ga6577a2e59968936ae02eb2edde5de299"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaf9771c991763233866bf76b5b5d1776f"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#gaf9771c991763233866bf76b5b5d1776f">cv::hconcat</a> (const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> *src, size_t nsrc, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst)</td></tr>
<tr class="memdesc:gaf9771c991763233866bf76b5b5d1776f"><td class="mdescLeft"> </td><td class="mdescRight">Applies horizontal concatenation to given matrices.  <a href="../../d2/de8/group__core__array.html#gaf9771c991763233866bf76b5b5d1776f">More...</a><br/></td></tr>
<tr class="separator:gaf9771c991763233866bf76b5b5d1776f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaab5ceee39e0580f879df645a872c6bf7"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#gaab5ceee39e0580f879df645a872c6bf7">cv::hconcat</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src1, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src2, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst)</td></tr>
<tr class="separator:gaab5ceee39e0580f879df645a872c6bf7"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga4676b1376cdc4e528dab6bd9edc51c1a"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga4676b1376cdc4e528dab6bd9edc51c1a">cv::hconcat</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga606feabe3b50ab6838f1ba89727aa07a">InputArrayOfArrays</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst)</td></tr>
<tr class="separator:ga4676b1376cdc4e528dab6bd9edc51c1a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga77b168d84e564c50228b69730a227ef2"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga77b168d84e564c50228b69730a227ef2">cv::idct</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst, int flags=0)</td></tr>
<tr class="memdesc:ga77b168d84e564c50228b69730a227ef2"><td class="mdescLeft"> </td><td class="mdescRight">Calculates the inverse Discrete Cosine Transform of a 1D or 2D array.  <a href="../../d2/de8/group__core__array.html#ga77b168d84e564c50228b69730a227ef2">More...</a><br/></td></tr>
<tr class="separator:ga77b168d84e564c50228b69730a227ef2"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaa708aa2d2e57a508f968eb0f69aa5ff1"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#gaa708aa2d2e57a508f968eb0f69aa5ff1">cv::idft</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst, int flags=0, int nonzeroRows=0)</td></tr>
<tr class="memdesc:gaa708aa2d2e57a508f968eb0f69aa5ff1"><td class="mdescLeft"> </td><td class="mdescRight">Calculates the inverse Discrete Fourier Transform of a 1D or 2D array.  <a href="../../d2/de8/group__core__array.html#gaa708aa2d2e57a508f968eb0f69aa5ff1">More...</a><br/></td></tr>
<tr class="separator:gaa708aa2d2e57a508f968eb0f69aa5ff1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga48af0ab51e36436c5d04340e036ce981"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga48af0ab51e36436c5d04340e036ce981">cv::inRange</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> lowerb, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> upperb, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst)</td></tr>
<tr class="memdesc:ga48af0ab51e36436c5d04340e036ce981"><td class="mdescLeft"> </td><td class="mdescRight">Checks if array elements lie between the elements of two other arrays.  <a href="../../d2/de8/group__core__array.html#ga48af0ab51e36436c5d04340e036ce981">More...</a><br/></td></tr>
<tr class="separator:ga48af0ab51e36436c5d04340e036ce981"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga1d4bd886d35b00ec0b764cb4ce6eb515"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga1d4bd886d35b00ec0b764cb4ce6eb515">cv::insertChannel</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> dst, int coi)</td></tr>
<tr class="memdesc:ga1d4bd886d35b00ec0b764cb4ce6eb515"><td class="mdescLeft"> </td><td class="mdescRight">Inserts a single channel to dst (coi is 0-based index)  <a href="../../d2/de8/group__core__array.html#ga1d4bd886d35b00ec0b764cb4ce6eb515">More...</a><br/></td></tr>
<tr class="separator:ga1d4bd886d35b00ec0b764cb4ce6eb515"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gad278044679d4ecf20f7622cc151aaaa2"><td align="right" class="memItemLeft" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#gad278044679d4ecf20f7622cc151aaaa2">cv::invert</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst, int flags=<a class="el" href="../../d2/de8/group__core__array.html#ggaaf9ea5dcc392d5ae04eacb9920b9674ca247a3455cd64973152e17e26999dc024">DECOMP_LU</a>)</td></tr>
<tr class="memdesc:gad278044679d4ecf20f7622cc151aaaa2"><td class="mdescLeft"> </td><td class="mdescRight">Finds the inverse or pseudo-inverse of a matrix.  <a href="../../d2/de8/group__core__array.html#gad278044679d4ecf20f7622cc151aaaa2">More...</a><br/></td></tr>
<tr class="separator:gad278044679d4ecf20f7622cc151aaaa2"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga937ecdce4679a77168730830a955bea7"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga937ecdce4679a77168730830a955bea7">cv::log</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst)</td></tr>
<tr class="memdesc:ga937ecdce4679a77168730830a955bea7"><td class="mdescLeft"> </td><td class="mdescRight">Calculates the natural logarithm of every array element.  <a href="../../d2/de8/group__core__array.html#ga937ecdce4679a77168730830a955bea7">More...</a><br/></td></tr>
<tr class="separator:ga937ecdce4679a77168730830a955bea7"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gab55b8d062b7f5587720ede032d34156f"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#gab55b8d062b7f5587720ede032d34156f">cv::LUT</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> lut, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst)</td></tr>
<tr class="memdesc:gab55b8d062b7f5587720ede032d34156f"><td class="mdescLeft"> </td><td class="mdescRight">Performs a look-up table transform of an array.  <a href="../../d2/de8/group__core__array.html#gab55b8d062b7f5587720ede032d34156f">More...</a><br/></td></tr>
<tr class="separator:gab55b8d062b7f5587720ede032d34156f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga6d3b097586bca4409873d64a90fe64c3"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga6d3b097586bca4409873d64a90fe64c3">cv::magnitude</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> x, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> y, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> magnitude)</td></tr>
<tr class="memdesc:ga6d3b097586bca4409873d64a90fe64c3"><td class="mdescLeft"> </td><td class="mdescRight">Calculates the magnitude of 2D vectors.  <a href="../../d2/de8/group__core__array.html#ga6d3b097586bca4409873d64a90fe64c3">More...</a><br/></td></tr>
<tr class="separator:ga6d3b097586bca4409873d64a90fe64c3"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga4493aee129179459cbfc6064f051aa7d"><td align="right" class="memItemLeft" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga4493aee129179459cbfc6064f051aa7d">cv::Mahalanobis</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> v1, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> v2, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> icovar)</td></tr>
<tr class="memdesc:ga4493aee129179459cbfc6064f051aa7d"><td class="mdescLeft"> </td><td class="mdescRight">Calculates the Mahalanobis distance between two vectors.  <a href="../../d2/de8/group__core__array.html#ga4493aee129179459cbfc6064f051aa7d">More...</a><br/></td></tr>
<tr class="separator:ga4493aee129179459cbfc6064f051aa7d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gacc40fa15eac0fb83f8ca70b7cc0b588d"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#gacc40fa15eac0fb83f8ca70b7cc0b588d">cv::max</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src1, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src2, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst)</td></tr>
<tr class="memdesc:gacc40fa15eac0fb83f8ca70b7cc0b588d"><td class="mdescLeft"> </td><td class="mdescRight">Calculates per-element maximum of two arrays or an array and a scalar.  <a href="../../d2/de8/group__core__array.html#gacc40fa15eac0fb83f8ca70b7cc0b588d">More...</a><br/></td></tr>
<tr class="separator:gacc40fa15eac0fb83f8ca70b7cc0b588d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gad81c37ed0b0fd23ede0cefadbf04af44"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#gad81c37ed0b0fd23ede0cefadbf04af44">cv::max</a> (const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp;src1, const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp;src2, <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp;dst)</td></tr>
<tr class="separator:gad81c37ed0b0fd23ede0cefadbf04af44"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga6eefd595055bf1ea4ba3d12f70531511"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga6eefd595055bf1ea4ba3d12f70531511">cv::max</a> (const <a class="el" href="../../d7/d45/classcv_1_1UMat.html">UMat</a> &amp;src1, const <a class="el" href="../../d7/d45/classcv_1_1UMat.html">UMat</a> &amp;src2, <a class="el" href="../../d7/d45/classcv_1_1UMat.html">UMat</a> &amp;dst)</td></tr>
<tr class="separator:ga6eefd595055bf1ea4ba3d12f70531511"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga191389f8a0e58180bb13a727782cd461"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga191389f8a0e58180bb13a727782cd461">cv::mean</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> mask=<a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>())</td></tr>
<tr class="memdesc:ga191389f8a0e58180bb13a727782cd461"><td class="mdescLeft"> </td><td class="mdescRight">Calculates an average (mean) of array elements.  <a href="../../d2/de8/group__core__array.html#ga191389f8a0e58180bb13a727782cd461">More...</a><br/></td></tr>
<tr class="separator:ga191389f8a0e58180bb13a727782cd461"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga846c858f4004d59493d7c6a4354b301d"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga846c858f4004d59493d7c6a4354b301d">cv::meanStdDev</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> <a class="el" href="../../d2/de8/group__core__array.html#ga191389f8a0e58180bb13a727782cd461">mean</a>, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> stddev, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> mask=<a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>())</td></tr>
<tr class="separator:ga846c858f4004d59493d7c6a4354b301d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga7d7b4d6c6ee504b30a20b1680029c7b4"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga7d7b4d6c6ee504b30a20b1680029c7b4">cv::merge</a> (const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> *mv, size_t count, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst)</td></tr>
<tr class="memdesc:ga7d7b4d6c6ee504b30a20b1680029c7b4"><td class="mdescLeft"> </td><td class="mdescRight">Creates one multi-channel array out of several single-channel ones.  <a href="../../d2/de8/group__core__array.html#ga7d7b4d6c6ee504b30a20b1680029c7b4">More...</a><br/></td></tr>
<tr class="separator:ga7d7b4d6c6ee504b30a20b1680029c7b4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga61f2f2bde4a0a0154b2333ea504fab1d"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga61f2f2bde4a0a0154b2333ea504fab1d">cv::merge</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga606feabe3b50ab6838f1ba89727aa07a">InputArrayOfArrays</a> mv, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst)</td></tr>
<tr class="separator:ga61f2f2bde4a0a0154b2333ea504fab1d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga9af368f182ee76d0463d0d8d5330b764"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga9af368f182ee76d0463d0d8d5330b764">cv::min</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src1, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src2, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst)</td></tr>
<tr class="memdesc:ga9af368f182ee76d0463d0d8d5330b764"><td class="mdescLeft"> </td><td class="mdescRight">Calculates per-element minimum of two arrays or an array and a scalar.  <a href="../../d2/de8/group__core__array.html#ga9af368f182ee76d0463d0d8d5330b764">More...</a><br/></td></tr>
<tr class="separator:ga9af368f182ee76d0463d0d8d5330b764"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga0b8852cd1a92366860e390e8abbe78dc"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga0b8852cd1a92366860e390e8abbe78dc">cv::min</a> (const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp;src1, const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp;src2, <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp;dst)</td></tr>
<tr class="separator:ga0b8852cd1a92366860e390e8abbe78dc"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaa83bf3dce9a4a488675347fff6692cb9"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#gaa83bf3dce9a4a488675347fff6692cb9">cv::min</a> (const <a class="el" href="../../d7/d45/classcv_1_1UMat.html">UMat</a> &amp;src1, const <a class="el" href="../../d7/d45/classcv_1_1UMat.html">UMat</a> &amp;src2, <a class="el" href="../../d7/d45/classcv_1_1UMat.html">UMat</a> &amp;dst)</td></tr>
<tr class="separator:gaa83bf3dce9a4a488675347fff6692cb9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga7622c466c628a75d9ed008b42250a73f"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga7622c466c628a75d9ed008b42250a73f">cv::minMaxIdx</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, double *minVal, double *maxVal=0, int *minIdx=0, int *maxIdx=0, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> mask=<a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>())</td></tr>
<tr class="memdesc:ga7622c466c628a75d9ed008b42250a73f"><td class="mdescLeft"> </td><td class="mdescRight">Finds the global minimum and maximum in an array.  <a href="../../d2/de8/group__core__array.html#ga7622c466c628a75d9ed008b42250a73f">More...</a><br/></td></tr>
<tr class="separator:ga7622c466c628a75d9ed008b42250a73f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gab473bf2eb6d14ff97e89b355dac20707"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#gab473bf2eb6d14ff97e89b355dac20707">cv::minMaxLoc</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, double *minVal, double *maxVal=0, <a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> *minLoc=0, <a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> *maxLoc=0, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> mask=<a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>())</td></tr>
<tr class="memdesc:gab473bf2eb6d14ff97e89b355dac20707"><td class="mdescLeft"> </td><td class="mdescRight">Finds the global minimum and maximum in an array.  <a href="../../d2/de8/group__core__array.html#gab473bf2eb6d14ff97e89b355dac20707">More...</a><br/></td></tr>
<tr class="separator:gab473bf2eb6d14ff97e89b355dac20707"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga8873b86a29c5af51cafdcee82f8150a7"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga8873b86a29c5af51cafdcee82f8150a7">cv::minMaxLoc</a> (const <a class="el" href="../../dd/da9/classcv_1_1SparseMat.html">SparseMat</a> &amp;a, double *minVal, double *maxVal, int *minIdx=0, int *maxIdx=0)</td></tr>
<tr class="separator:ga8873b86a29c5af51cafdcee82f8150a7"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga51d768c270a1cdd3497255017c4504be"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga51d768c270a1cdd3497255017c4504be">cv::mixChannels</a> (const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> *src, size_t nsrcs, <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> *dst, size_t ndsts, const int *fromTo, size_t npairs)</td></tr>
<tr class="memdesc:ga51d768c270a1cdd3497255017c4504be"><td class="mdescLeft"> </td><td class="mdescRight">Copies specified channels from input arrays to the specified channels of output arrays.  <a href="../../d2/de8/group__core__array.html#ga51d768c270a1cdd3497255017c4504be">More...</a><br/></td></tr>
<tr class="separator:ga51d768c270a1cdd3497255017c4504be"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga89dd05fd8fe54f5b7b5d89bca21153a1"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga89dd05fd8fe54f5b7b5d89bca21153a1">cv::mixChannels</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga606feabe3b50ab6838f1ba89727aa07a">InputArrayOfArrays</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#ga8899575c0929a56ab8bdd01cf34ebcb1">InputOutputArrayOfArrays</a> dst, const int *fromTo, size_t npairs)</td></tr>
<tr class="separator:ga89dd05fd8fe54f5b7b5d89bca21153a1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga83b61f9875e6618ee08487b21ec71ab1"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga83b61f9875e6618ee08487b21ec71ab1">cv::mixChannels</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga606feabe3b50ab6838f1ba89727aa07a">InputArrayOfArrays</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#ga8899575c0929a56ab8bdd01cf34ebcb1">InputOutputArrayOfArrays</a> dst, const std::vector&lt; int &gt; &amp;fromTo)</td></tr>
<tr class="separator:ga83b61f9875e6618ee08487b21ec71ab1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga3ab38646463c59bf0ce962a9d51db64f"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga3ab38646463c59bf0ce962a9d51db64f">cv::mulSpectrums</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> a, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> b, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> c, int flags, bool conjB=false)</td></tr>
<tr class="memdesc:ga3ab38646463c59bf0ce962a9d51db64f"><td class="mdescLeft"> </td><td class="mdescRight">Performs the per-element multiplication of two Fourier spectrums.  <a href="../../d2/de8/group__core__array.html#ga3ab38646463c59bf0ce962a9d51db64f">More...</a><br/></td></tr>
<tr class="separator:ga3ab38646463c59bf0ce962a9d51db64f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga979d898a58d7f61c53003e162e7ad89f"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga979d898a58d7f61c53003e162e7ad89f">cv::multiply</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src1, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src2, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst, double scale=1, int dtype=-1)</td></tr>
<tr class="memdesc:ga979d898a58d7f61c53003e162e7ad89f"><td class="mdescLeft"> </td><td class="mdescRight">Calculates the per-element scaled product of two arrays.  <a href="../../d2/de8/group__core__array.html#ga979d898a58d7f61c53003e162e7ad89f">More...</a><br/></td></tr>
<tr class="separator:ga979d898a58d7f61c53003e162e7ad89f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gadc4e49f8f7a155044e3be1b9e3b270ab"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#gadc4e49f8f7a155044e3be1b9e3b270ab">cv::mulTransposed</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst, bool aTa, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> delta=<a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>(), double scale=1, int dtype=-1)</td></tr>
<tr class="memdesc:gadc4e49f8f7a155044e3be1b9e3b270ab"><td class="mdescLeft"> </td><td class="mdescRight">Calculates the product of a matrix and its transposition.  <a href="../../d2/de8/group__core__array.html#gadc4e49f8f7a155044e3be1b9e3b270ab">More...</a><br/></td></tr>
<tr class="separator:gadc4e49f8f7a155044e3be1b9e3b270ab"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga55a581f0accd8d990af775d378e7e46c"><td align="right" class="memItemLeft" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga55a581f0accd8d990af775d378e7e46c">cv::norm</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src1, int normType=<a class="el" href="../../d2/de8/group__core__array.html#ggad12cefbcb5291cf958a85b4b67b6149fa7bacbe84d400336a8f26297d8e80e3a2">NORM_L2</a>, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> mask=<a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>())</td></tr>
<tr class="memdesc:ga55a581f0accd8d990af775d378e7e46c"><td class="mdescLeft"> </td><td class="mdescRight">Calculates the absolute norm of an array.  <a href="../../d2/de8/group__core__array.html#ga55a581f0accd8d990af775d378e7e46c">More...</a><br/></td></tr>
<tr class="separator:ga55a581f0accd8d990af775d378e7e46c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gae15fc2d956eb3a93ec65339a50dc7b6a"><td align="right" class="memItemLeft" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#gae15fc2d956eb3a93ec65339a50dc7b6a">cv::norm</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src1, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src2, int normType=<a class="el" href="../../d2/de8/group__core__array.html#ggad12cefbcb5291cf958a85b4b67b6149fa7bacbe84d400336a8f26297d8e80e3a2">NORM_L2</a>, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> mask=<a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>())</td></tr>
<tr class="memdesc:gae15fc2d956eb3a93ec65339a50dc7b6a"><td class="mdescLeft"> </td><td class="mdescRight">Calculates an absolute difference norm or a relative difference norm.  <a href="../../d2/de8/group__core__array.html#gae15fc2d956eb3a93ec65339a50dc7b6a">More...</a><br/></td></tr>
<tr class="separator:gae15fc2d956eb3a93ec65339a50dc7b6a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga7c331fb8dd951707e184ef4e3f21dd33"><td align="right" class="memItemLeft" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga7c331fb8dd951707e184ef4e3f21dd33">cv::norm</a> (const <a class="el" href="../../dd/da9/classcv_1_1SparseMat.html">SparseMat</a> &amp;src, int normType)</td></tr>
<tr class="separator:ga7c331fb8dd951707e184ef4e3f21dd33"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga87eef7ee3970f86906d69a92cbf064bd"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga87eef7ee3970f86906d69a92cbf064bd">cv::normalize</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> dst, double alpha=1, double beta=0, int norm_type=<a class="el" href="../../d2/de8/group__core__array.html#ggad12cefbcb5291cf958a85b4b67b6149fa7bacbe84d400336a8f26297d8e80e3a2">NORM_L2</a>, int dtype=-1, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> mask=<a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>())</td></tr>
<tr class="memdesc:ga87eef7ee3970f86906d69a92cbf064bd"><td class="mdescLeft"> </td><td class="mdescRight">Normalizes the norm or value range of an array.  <a href="../../d2/de8/group__core__array.html#ga87eef7ee3970f86906d69a92cbf064bd">More...</a><br/></td></tr>
<tr class="separator:ga87eef7ee3970f86906d69a92cbf064bd"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga7bcf47a1df78cf575162e0aed44960cb"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga7bcf47a1df78cf575162e0aed44960cb">cv::normalize</a> (const <a class="el" href="../../dd/da9/classcv_1_1SparseMat.html">SparseMat</a> &amp;src, <a class="el" href="../../dd/da9/classcv_1_1SparseMat.html">SparseMat</a> &amp;dst, double alpha, int normType)</td></tr>
<tr class="separator:ga7bcf47a1df78cf575162e0aed44960cb"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga62286befb7cde3568ff8c7d14d5079da"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga62286befb7cde3568ff8c7d14d5079da">cv::patchNaNs</a> (<a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> a, double val=0)</td></tr>
<tr class="memdesc:ga62286befb7cde3568ff8c7d14d5079da"><td class="mdescLeft"> </td><td class="mdescRight">converts NaNs to the given number  <a href="../../d2/de8/group__core__array.html#ga62286befb7cde3568ff8c7d14d5079da">More...</a><br/></td></tr>
<tr class="separator:ga62286befb7cde3568ff8c7d14d5079da"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gab26049f30ee8e94f7d69d82c124faafc"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#gab26049f30ee8e94f7d69d82c124faafc">cv::PCABackProject</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> data, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> <a class="el" href="../../d2/de8/group__core__array.html#ga191389f8a0e58180bb13a727782cd461">mean</a>, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> eigenvectors, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> result)</td></tr>
<tr class="separator:gab26049f30ee8e94f7d69d82c124faafc"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga4e2073c7311f292a0648f04c37b73781"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga4e2073c7311f292a0648f04c37b73781">cv::PCACompute</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> data, <a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> <a class="el" href="../../d2/de8/group__core__array.html#ga191389f8a0e58180bb13a727782cd461">mean</a>, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> eigenvectors, int maxComponents=0)</td></tr>
<tr class="separator:ga4e2073c7311f292a0648f04c37b73781"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga27a565b31d820b05dcbcd47112176b6e"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga27a565b31d820b05dcbcd47112176b6e">cv::PCACompute</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> data, <a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> <a class="el" href="../../d2/de8/group__core__array.html#ga191389f8a0e58180bb13a727782cd461">mean</a>, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> eigenvectors, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> eigenvalues, int maxComponents=0)</td></tr>
<tr class="separator:ga27a565b31d820b05dcbcd47112176b6e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga0ad1147fbcdb256f2e14ae2bfb8c991d"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga0ad1147fbcdb256f2e14ae2bfb8c991d">cv::PCACompute</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> data, <a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> <a class="el" href="../../d2/de8/group__core__array.html#ga191389f8a0e58180bb13a727782cd461">mean</a>, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> eigenvectors, double retainedVariance)</td></tr>
<tr class="separator:ga0ad1147fbcdb256f2e14ae2bfb8c991d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaa928ce9ac86ffc12b7fae3a22a3aa308"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#gaa928ce9ac86ffc12b7fae3a22a3aa308">cv::PCACompute</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> data, <a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> <a class="el" href="../../d2/de8/group__core__array.html#ga191389f8a0e58180bb13a727782cd461">mean</a>, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> eigenvectors, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> eigenvalues, double retainedVariance)</td></tr>
<tr class="separator:gaa928ce9ac86ffc12b7fae3a22a3aa308"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga6b9fbc7b3a99ebfd441bbec0a6bc4f88"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga6b9fbc7b3a99ebfd441bbec0a6bc4f88">cv::PCAProject</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> data, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> <a class="el" href="../../d2/de8/group__core__array.html#ga191389f8a0e58180bb13a727782cd461">mean</a>, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> eigenvectors, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> result)</td></tr>
<tr class="separator:ga6b9fbc7b3a99ebfd441bbec0a6bc4f88"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gad327659ac03e5fd6894b90025e6900a7"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#gad327659ac03e5fd6894b90025e6900a7">cv::perspectiveTransform</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> m)</td></tr>
<tr class="memdesc:gad327659ac03e5fd6894b90025e6900a7"><td class="mdescLeft"> </td><td class="mdescRight">Performs the perspective matrix transformation of vectors.  <a href="../../d2/de8/group__core__array.html#gad327659ac03e5fd6894b90025e6900a7">More...</a><br/></td></tr>
<tr class="separator:gad327659ac03e5fd6894b90025e6900a7"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga9db9ca9b4d81c3bde5677b8f64dc0137"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga9db9ca9b4d81c3bde5677b8f64dc0137">cv::phase</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> x, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> y, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> angle, bool angleInDegrees=false)</td></tr>
<tr class="memdesc:ga9db9ca9b4d81c3bde5677b8f64dc0137"><td class="mdescLeft"> </td><td class="mdescRight">Calculates the rotation angle of 2D vectors.  <a href="../../d2/de8/group__core__array.html#ga9db9ca9b4d81c3bde5677b8f64dc0137">More...</a><br/></td></tr>
<tr class="separator:ga9db9ca9b4d81c3bde5677b8f64dc0137"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga581ff9d44201de2dd1b40a50db93d665"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga581ff9d44201de2dd1b40a50db93d665">cv::polarToCart</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> <a class="el" href="../../d2/de8/group__core__array.html#ga6d3b097586bca4409873d64a90fe64c3">magnitude</a>, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> angle, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> x, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> y, bool angleInDegrees=false)</td></tr>
<tr class="memdesc:ga581ff9d44201de2dd1b40a50db93d665"><td class="mdescLeft"> </td><td class="mdescRight">Calculates x and y coordinates of 2D vectors from their magnitude and angle.  <a href="../../d2/de8/group__core__array.html#ga581ff9d44201de2dd1b40a50db93d665">More...</a><br/></td></tr>
<tr class="separator:ga581ff9d44201de2dd1b40a50db93d665"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaf0d056b5bd1dc92500d6f6cf6bac41ef"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#gaf0d056b5bd1dc92500d6f6cf6bac41ef">cv::pow</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, double <a class="el" href="../../d0/de1/group__core.html#ga18f51c22dcd55f668c25cc3b919366ed">power</a>, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst)</td></tr>
<tr class="memdesc:gaf0d056b5bd1dc92500d6f6cf6bac41ef"><td class="mdescLeft"> </td><td class="mdescRight">Raises every array element to a power.  <a href="../../d2/de8/group__core__array.html#gaf0d056b5bd1dc92500d6f6cf6bac41ef">More...</a><br/></td></tr>
<tr class="separator:gaf0d056b5bd1dc92500d6f6cf6bac41ef"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga3119e3ea73010a6f810bb05aa36ac8d6"><td align="right" class="memItemLeft" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga3119e3ea73010a6f810bb05aa36ac8d6">cv::PSNR</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src1, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src2, double R=255.)</td></tr>
<tr class="memdesc:ga3119e3ea73010a6f810bb05aa36ac8d6"><td class="mdescLeft"> </td><td class="mdescRight">Computes the Peak Signal-to-Noise Ratio (PSNR) image quality metric.  <a href="../../d2/de8/group__core__array.html#ga3119e3ea73010a6f810bb05aa36ac8d6">More...</a><br/></td></tr>
<tr class="separator:ga3119e3ea73010a6f810bb05aa36ac8d6"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaeff1f61e972d133a04ce3a5f81cf6808"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#gaeff1f61e972d133a04ce3a5f81cf6808">cv::randn</a> (<a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> dst, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> <a class="el" href="../../d2/de8/group__core__array.html#ga191389f8a0e58180bb13a727782cd461">mean</a>, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> stddev)</td></tr>
<tr class="memdesc:gaeff1f61e972d133a04ce3a5f81cf6808"><td class="mdescLeft"> </td><td class="mdescRight">Fills the array with normally distributed random numbers.  <a href="../../d2/de8/group__core__array.html#gaeff1f61e972d133a04ce3a5f81cf6808">More...</a><br/></td></tr>
<tr class="separator:gaeff1f61e972d133a04ce3a5f81cf6808"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga6a789c8a5cb56c6dd62506179808f763"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga6a789c8a5cb56c6dd62506179808f763">cv::randShuffle</a> (<a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> dst, double iterFactor=1., <a class="el" href="../../d1/dd6/classcv_1_1RNG.html">RNG</a> *rng=0)</td></tr>
<tr class="memdesc:ga6a789c8a5cb56c6dd62506179808f763"><td class="mdescLeft"> </td><td class="mdescRight">Shuffles the array elements randomly.  <a href="../../d2/de8/group__core__array.html#ga6a789c8a5cb56c6dd62506179808f763">More...</a><br/></td></tr>
<tr class="separator:ga6a789c8a5cb56c6dd62506179808f763"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga1ba1026dca0807b27057ba6a49d258c0"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga1ba1026dca0807b27057ba6a49d258c0">cv::randu</a> (<a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> dst, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> low, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> high)</td></tr>
<tr class="memdesc:ga1ba1026dca0807b27057ba6a49d258c0"><td class="mdescLeft"> </td><td class="mdescRight">Generates a single uniformly-distributed random number or an array of random numbers.  <a href="../../d2/de8/group__core__array.html#ga1ba1026dca0807b27057ba6a49d258c0">More...</a><br/></td></tr>
<tr class="separator:ga1ba1026dca0807b27057ba6a49d258c0"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga4b78072a303f29d9031d56e5638da78e"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga4b78072a303f29d9031d56e5638da78e">cv::reduce</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst, int dim, int rtype, int dtype=-1)</td></tr>
<tr class="memdesc:ga4b78072a303f29d9031d56e5638da78e"><td class="mdescLeft"> </td><td class="mdescRight">Reduces a matrix to a vector.  <a href="../../d2/de8/group__core__array.html#ga4b78072a303f29d9031d56e5638da78e">More...</a><br/></td></tr>
<tr class="separator:ga4b78072a303f29d9031d56e5638da78e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga496c3860f3ac44c40b48811333cfda2d"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga496c3860f3ac44c40b48811333cfda2d">cv::repeat</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, int ny, int nx, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst)</td></tr>
<tr class="memdesc:ga496c3860f3ac44c40b48811333cfda2d"><td class="mdescLeft"> </td><td class="mdescRight">Fills the output array with repeated copies of the input array.  <a href="../../d2/de8/group__core__array.html#ga496c3860f3ac44c40b48811333cfda2d">More...</a><br/></td></tr>
<tr class="separator:ga496c3860f3ac44c40b48811333cfda2d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga8e9c4ef56a85c58332c63997c10a51d8"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga8e9c4ef56a85c58332c63997c10a51d8">cv::repeat</a> (const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp;src, int ny, int nx)</td></tr>
<tr class="separator:ga8e9c4ef56a85c58332c63997c10a51d8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga4ad01c0978b0ce64baa246811deeac24"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga4ad01c0978b0ce64baa246811deeac24">cv::rotate</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst, int rotateCode)</td></tr>
<tr class="memdesc:ga4ad01c0978b0ce64baa246811deeac24"><td class="mdescLeft"> </td><td class="mdescRight">Rotates a 2D array in multiples of 90 degrees. The function <a class="el" href="../../d2/de8/group__core__array.html#ga4ad01c0978b0ce64baa246811deeac24" title="Rotates a 2D array in multiples of 90 degrees. The function cv::rotate rotates the array in one of th...">cv::rotate</a> rotates the array in one of three different ways: Rotate by 90 degrees clockwise (rotateCode = ROTATE_90_CLOCKWISE). Rotate by 180 degrees clockwise (rotateCode = ROTATE_180). Rotate by 270 degrees clockwise (rotateCode = ROTATE_90_COUNTERCLOCKWISE).  <a href="../../d2/de8/group__core__array.html#ga4ad01c0978b0ce64baa246811deeac24">More...</a><br/></td></tr>
<tr class="separator:ga4ad01c0978b0ce64baa246811deeac24"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga9e0845db4135f55dcf20227402f00d98"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga9e0845db4135f55dcf20227402f00d98">cv::scaleAdd</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src1, double alpha, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src2, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst)</td></tr>
<tr class="memdesc:ga9e0845db4135f55dcf20227402f00d98"><td class="mdescLeft"> </td><td class="mdescRight">Calculates the sum of a scaled array and another array.  <a href="../../d2/de8/group__core__array.html#ga9e0845db4135f55dcf20227402f00d98">More...</a><br/></td></tr>
<tr class="separator:ga9e0845db4135f55dcf20227402f00d98"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga388d7575224a4a277ceb98ccaa327c99"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga388d7575224a4a277ceb98ccaa327c99">cv::setIdentity</a> (<a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> mtx, const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp;s=<a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a>(1))</td></tr>
<tr class="memdesc:ga388d7575224a4a277ceb98ccaa327c99"><td class="mdescLeft"> </td><td class="mdescRight">Initializes a scaled identity matrix.  <a href="../../d2/de8/group__core__array.html#ga388d7575224a4a277ceb98ccaa327c99">More...</a><br/></td></tr>
<tr class="separator:ga388d7575224a4a277ceb98ccaa327c99"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga757e657c037410d9e19e819569e7de0f"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga757e657c037410d9e19e819569e7de0f">cv::setRNGSeed</a> (int seed)</td></tr>
<tr class="memdesc:ga757e657c037410d9e19e819569e7de0f"><td class="mdescLeft"> </td><td class="mdescRight">Sets state of default random number generator.  <a href="../../d2/de8/group__core__array.html#ga757e657c037410d9e19e819569e7de0f">More...</a><br/></td></tr>
<tr class="separator:ga757e657c037410d9e19e819569e7de0f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga12b43690dbd31fed96f213eefead2373"><td align="right" class="memItemLeft" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga12b43690dbd31fed96f213eefead2373">cv::solve</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src1, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src2, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst, int flags=<a class="el" href="../../d2/de8/group__core__array.html#ggaaf9ea5dcc392d5ae04eacb9920b9674ca247a3455cd64973152e17e26999dc024">DECOMP_LU</a>)</td></tr>
<tr class="memdesc:ga12b43690dbd31fed96f213eefead2373"><td class="mdescLeft"> </td><td class="mdescRight">Solves one or more linear systems or least-squares problems.  <a href="../../d2/de8/group__core__array.html#ga12b43690dbd31fed96f213eefead2373">More...</a><br/></td></tr>
<tr class="separator:ga12b43690dbd31fed96f213eefead2373"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga1c3b0b925b085b6e96931ee309e6a1da"><td align="right" class="memItemLeft" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga1c3b0b925b085b6e96931ee309e6a1da">cv::solveCubic</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> coeffs, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> roots)</td></tr>
<tr class="memdesc:ga1c3b0b925b085b6e96931ee309e6a1da"><td class="mdescLeft"> </td><td class="mdescRight">Finds the real roots of a cubic equation.  <a href="../../d2/de8/group__core__array.html#ga1c3b0b925b085b6e96931ee309e6a1da">More...</a><br/></td></tr>
<tr class="separator:ga1c3b0b925b085b6e96931ee309e6a1da"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gac2f5e953016fabcdf793d762f4ec5dce"><td align="right" class="memItemLeft" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#gac2f5e953016fabcdf793d762f4ec5dce">cv::solvePoly</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> coeffs, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> roots, int maxIters=300)</td></tr>
<tr class="memdesc:gac2f5e953016fabcdf793d762f4ec5dce"><td class="mdescLeft"> </td><td class="mdescRight">Finds the real or complex roots of a polynomial equation.  <a href="../../d2/de8/group__core__array.html#gac2f5e953016fabcdf793d762f4ec5dce">More...</a><br/></td></tr>
<tr class="separator:gac2f5e953016fabcdf793d762f4ec5dce"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga45dd56da289494ce874be2324856898f"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga45dd56da289494ce874be2324856898f">cv::sort</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst, int flags)</td></tr>
<tr class="memdesc:ga45dd56da289494ce874be2324856898f"><td class="mdescLeft"> </td><td class="mdescRight">Sorts each row or each column of a matrix.  <a href="../../d2/de8/group__core__array.html#ga45dd56da289494ce874be2324856898f">More...</a><br/></td></tr>
<tr class="separator:ga45dd56da289494ce874be2324856898f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gadf35157cbf97f3cb85a545380e383506"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#gadf35157cbf97f3cb85a545380e383506">cv::sortIdx</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst, int flags)</td></tr>
<tr class="memdesc:gadf35157cbf97f3cb85a545380e383506"><td class="mdescLeft"> </td><td class="mdescRight">Sorts each row or each column of a matrix.  <a href="../../d2/de8/group__core__array.html#gadf35157cbf97f3cb85a545380e383506">More...</a><br/></td></tr>
<tr class="separator:gadf35157cbf97f3cb85a545380e383506"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga0547c7fed86152d7e9d0096029c8518a"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga0547c7fed86152d7e9d0096029c8518a">cv::split</a> (const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp;src, <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> *mvbegin)</td></tr>
<tr class="memdesc:ga0547c7fed86152d7e9d0096029c8518a"><td class="mdescLeft"> </td><td class="mdescRight">Divides a multi-channel array into several single-channel arrays.  <a href="../../d2/de8/group__core__array.html#ga0547c7fed86152d7e9d0096029c8518a">More...</a><br/></td></tr>
<tr class="separator:ga0547c7fed86152d7e9d0096029c8518a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga8027f9deee1e42716be8039e5863fbd9"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga8027f9deee1e42716be8039e5863fbd9">cv::split</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> m, <a class="el" href="../../dc/d84/group__core__basic.html#ga889a09549b98223016170d9b613715de">OutputArrayOfArrays</a> mv)</td></tr>
<tr class="separator:ga8027f9deee1e42716be8039e5863fbd9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga186222c3919657890f88df5a1f64a7d7"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga186222c3919657890f88df5a1f64a7d7">cv::sqrt</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst)</td></tr>
<tr class="memdesc:ga186222c3919657890f88df5a1f64a7d7"><td class="mdescLeft"> </td><td class="mdescRight">Calculates a square root of array elements.  <a href="../../d2/de8/group__core__array.html#ga186222c3919657890f88df5a1f64a7d7">More...</a><br/></td></tr>
<tr class="separator:ga186222c3919657890f88df5a1f64a7d7"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaa0f00d98b4b5edeaeb7b8333b2de353b"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#gaa0f00d98b4b5edeaeb7b8333b2de353b">cv::subtract</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src1, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src2, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> mask=<a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>(), int dtype=-1)</td></tr>
<tr class="memdesc:gaa0f00d98b4b5edeaeb7b8333b2de353b"><td class="mdescLeft"> </td><td class="mdescRight">Calculates the per-element difference between two arrays or array and a scalar.  <a href="../../d2/de8/group__core__array.html#gaa0f00d98b4b5edeaeb7b8333b2de353b">More...</a><br/></td></tr>
<tr class="separator:gaa0f00d98b4b5edeaeb7b8333b2de353b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga716e10a2dd9e228e4d3c95818f106722"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga716e10a2dd9e228e4d3c95818f106722">cv::sum</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src)</td></tr>
<tr class="memdesc:ga716e10a2dd9e228e4d3c95818f106722"><td class="mdescLeft"> </td><td class="mdescRight">Calculates the sum of array elements.  <a href="../../d2/de8/group__core__array.html#ga716e10a2dd9e228e4d3c95818f106722">More...</a><br/></td></tr>
<tr class="separator:ga716e10a2dd9e228e4d3c95818f106722"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gab4e620e6fc6c8a27bb2be3d50a840c0b"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#gab4e620e6fc6c8a27bb2be3d50a840c0b">cv::SVBackSubst</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> w, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> u, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> vt, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> rhs, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst)</td></tr>
<tr class="separator:gab4e620e6fc6c8a27bb2be3d50a840c0b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gab477b5b7b39b370bb03e75b19d2d5109"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#gab477b5b7b39b370bb03e75b19d2d5109">cv::SVDecomp</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> w, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> u, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> vt, int flags=0)</td></tr>
<tr class="separator:gab477b5b7b39b370bb03e75b19d2d5109"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga75843061d150ad6564b5447e38e57722"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../d1/dd6/classcv_1_1RNG.html">RNG</a> &amp; </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga75843061d150ad6564b5447e38e57722">cv::theRNG</a> ()</td></tr>
<tr class="memdesc:ga75843061d150ad6564b5447e38e57722"><td class="mdescLeft"> </td><td class="mdescRight">Returns the default random number generator.  <a href="../../d2/de8/group__core__array.html#ga75843061d150ad6564b5447e38e57722">More...</a><br/></td></tr>
<tr class="separator:ga75843061d150ad6564b5447e38e57722"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga3419ac19c7dcd2be4bd552a23e147dd8"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga3419ac19c7dcd2be4bd552a23e147dd8">cv::trace</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> mtx)</td></tr>
<tr class="memdesc:ga3419ac19c7dcd2be4bd552a23e147dd8"><td class="mdescLeft"> </td><td class="mdescRight">Returns the trace of a matrix.  <a href="../../d2/de8/group__core__array.html#ga3419ac19c7dcd2be4bd552a23e147dd8">More...</a><br/></td></tr>
<tr class="separator:ga3419ac19c7dcd2be4bd552a23e147dd8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga393164aa54bb9169ce0a8cc44e08ff22"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga393164aa54bb9169ce0a8cc44e08ff22">cv::transform</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> m)</td></tr>
<tr class="memdesc:ga393164aa54bb9169ce0a8cc44e08ff22"><td class="mdescLeft"> </td><td class="mdescRight">Performs the matrix transformation of every array element.  <a href="../../d2/de8/group__core__array.html#ga393164aa54bb9169ce0a8cc44e08ff22">More...</a><br/></td></tr>
<tr class="separator:ga393164aa54bb9169ce0a8cc44e08ff22"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga46630ed6c0ea6254a35f447289bd7404"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga46630ed6c0ea6254a35f447289bd7404">cv::transpose</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst)</td></tr>
<tr class="memdesc:ga46630ed6c0ea6254a35f447289bd7404"><td class="mdescLeft"> </td><td class="mdescRight">Transposes a matrix.  <a href="../../d2/de8/group__core__array.html#ga46630ed6c0ea6254a35f447289bd7404">More...</a><br/></td></tr>
<tr class="separator:ga46630ed6c0ea6254a35f447289bd7404"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga744f53b69f6e4f12156cdde4e76aed27"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga744f53b69f6e4f12156cdde4e76aed27">cv::vconcat</a> (const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> *src, size_t nsrc, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst)</td></tr>
<tr class="memdesc:ga744f53b69f6e4f12156cdde4e76aed27"><td class="mdescLeft"> </td><td class="mdescRight">Applies vertical concatenation to given matrices.  <a href="../../d2/de8/group__core__array.html#ga744f53b69f6e4f12156cdde4e76aed27">More...</a><br/></td></tr>
<tr class="separator:ga744f53b69f6e4f12156cdde4e76aed27"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaad07cede730cdde64b90e987aad179b8"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#gaad07cede730cdde64b90e987aad179b8">cv::vconcat</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src1, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src2, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst)</td></tr>
<tr class="separator:gaad07cede730cdde64b90e987aad179b8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga558e169e15adcc46b8cdcc6cd215070f"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/de8/group__core__array.html#ga558e169e15adcc46b8cdcc6cd215070f">cv::vconcat</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga606feabe3b50ab6838f1ba89727aa07a">InputArrayOfArrays</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst)</td></tr>
<tr class="separator:ga558e169e15adcc46b8cdcc6cd215070f"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a id="details" name="details"></a><h2 class="groupheader">Detailed Description</h2>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a id="ga209f2f4869e304c82d07739337eae7c5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga209f2f4869e304c82d07739337eae7c5">◆ </a></span>BorderTypes</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../d2/de8/group__core__array.html#ga209f2f4869e304c82d07739337eae7c5">cv::BorderTypes</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../df/dc3/core_2include_2opencv2_2core_2base_8hpp.html">opencv2/core/base.hpp</a>&gt;</code></p>
<p>Various border types, image boundaries are denoted with <code>|</code> </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d2/de8/group__core__array.html#ga247f571aa6244827d3d798f13892da58" title="Computes the source location of an extrapolated pixel. ">borderInterpolate</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga2ac1049c2c3dd25c2b41bffe17658a36" title="Forms a border around an image. ">copyMakeBorder</a> </dd></dl>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga209f2f4869e304c82d07739337eae7c5aed2e4346047e265c8c5a6d0276dcd838"></a>BORDER_CONSTANT <div class="python_language">Python: cv.BORDER_CONSTANT</div></td><td class="fielddoc"><p><code>iiiiii|abcdefgh|iiiiiii</code> with some specified <code>i</code> </p>
</td></tr>
<tr><td class="fieldname"><a id="gga209f2f4869e304c82d07739337eae7c5aa1de4cff95e3377d6d0cbe7569bd4e9f"></a>BORDER_REPLICATE <div class="python_language">Python: cv.BORDER_REPLICATE</div></td><td class="fielddoc"><p><code>aaaaaa|abcdefgh|hhhhhhh</code> </p>
</td></tr>
<tr><td class="fieldname"><a id="gga209f2f4869e304c82d07739337eae7c5a815c8a89b7cb206dcba14d11b7560f4b"></a>BORDER_REFLECT <div class="python_language">Python: cv.BORDER_REFLECT</div></td><td class="fielddoc"><p><code>fedcba|abcdefgh|hgfedcb</code> </p>
</td></tr>
<tr><td class="fieldname"><a id="gga209f2f4869e304c82d07739337eae7c5a697c1b011884a7c2bdc0e5caf7955661"></a>BORDER_WRAP <div class="python_language">Python: cv.BORDER_WRAP</div></td><td class="fielddoc"><p><code>cdefgh|abcdefgh|abcdefg</code> </p>
</td></tr>
<tr><td class="fieldname"><a id="gga209f2f4869e304c82d07739337eae7c5ab3c5a6143d8120b95005fa7105a10bb4"></a>BORDER_REFLECT_101 <div class="python_language">Python: cv.BORDER_REFLECT_101</div></td><td class="fielddoc"><p><code>gfedcb|abcdefgh|gfedcba</code> </p>
</td></tr>
<tr><td class="fieldname"><a id="gga209f2f4869e304c82d07739337eae7c5a886a5eb6b466854d63f9e742d5c8eefe"></a>BORDER_TRANSPARENT <div class="python_language">Python: cv.BORDER_TRANSPARENT</div></td><td class="fielddoc"><p><code>uvwxyz|abcdefgh|ijklmno</code> </p>
</td></tr>
<tr><td class="fieldname"><a id="gga209f2f4869e304c82d07739337eae7c5a119fb22eda11675d2e00426d334a1a81"></a>BORDER_REFLECT101 <div class="python_language">Python: cv.BORDER_REFLECT101</div></td><td class="fielddoc"><p>same as BORDER_REFLECT_101 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga209f2f4869e304c82d07739337eae7c5afe14c13a4ea8b8e3b3ef399013dbae01"></a>BORDER_DEFAULT <div class="python_language">Python: cv.BORDER_DEFAULT</div></td><td class="fielddoc"><p>same as BORDER_REFLECT_101 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga209f2f4869e304c82d07739337eae7c5a4fcb77ae62e1e1336c1c2b24a441995c"></a>BORDER_ISOLATED <div class="python_language">Python: cv.BORDER_ISOLATED</div></td><td class="fielddoc"><p>do not look outside of ROI </p>
</td></tr>
</table>
</div>
</div>
<a id="ga0cc47ff833d40b58ecbe1d609a53d784"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0cc47ff833d40b58ecbe1d609a53d784">◆ </a></span>CmpTypes</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../d2/de8/group__core__array.html#ga0cc47ff833d40b58ecbe1d609a53d784">cv::CmpTypes</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../df/dc3/core_2include_2opencv2_2core_2base_8hpp.html">opencv2/core/base.hpp</a>&gt;</code></p>
<p>comparison types </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga0cc47ff833d40b58ecbe1d609a53d784a878fbe5d23e277c3d87128a8844e639d"></a>CMP_EQ <div class="python_language">Python: cv.CMP_EQ</div></td><td class="fielddoc"><p>src1 is equal to src2. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga0cc47ff833d40b58ecbe1d609a53d784ada5167eceeaca5a3dc9d7f6a96255827"></a>CMP_GT <div class="python_language">Python: cv.CMP_GT</div></td><td class="fielddoc"><p>src1 is greater than src2. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga0cc47ff833d40b58ecbe1d609a53d784a0dd1b1a6fa443343f44aef8c52942625"></a>CMP_GE <div class="python_language">Python: cv.CMP_GE</div></td><td class="fielddoc"><p>src1 is greater than or equal to src2. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga0cc47ff833d40b58ecbe1d609a53d784a5a747de43c04d59b6e51a2959a8af105"></a>CMP_LT <div class="python_language">Python: cv.CMP_LT</div></td><td class="fielddoc"><p>src1 is less than src2. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga0cc47ff833d40b58ecbe1d609a53d784a45cc5be6c7f35292542aa7c00ce4cf1c"></a>CMP_LE <div class="python_language">Python: cv.CMP_LE</div></td><td class="fielddoc"><p>src1 is less than or equal to src2. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga0cc47ff833d40b58ecbe1d609a53d784a7997997a104b827c918884b6c5ee0e59"></a>CMP_NE <div class="python_language">Python: cv.CMP_NE</div></td><td class="fielddoc"><p>src1 is unequal to src2. </p>
</td></tr>
</table>
</div>
</div>
<a id="gaaf9ea5dcc392d5ae04eacb9920b9674c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaaf9ea5dcc392d5ae04eacb9920b9674c">◆ </a></span>DecompTypes</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../d2/de8/group__core__array.html#gaaf9ea5dcc392d5ae04eacb9920b9674c">cv::DecompTypes</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../df/dc3/core_2include_2opencv2_2core_2base_8hpp.html">opencv2/core/base.hpp</a>&gt;</code></p>
<p>matrix decomposition types </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="ggaaf9ea5dcc392d5ae04eacb9920b9674ca247a3455cd64973152e17e26999dc024"></a>DECOMP_LU <div class="python_language">Python: cv.DECOMP_LU</div></td><td class="fielddoc"><p>Gaussian elimination with the optimal pivot element chosen. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggaaf9ea5dcc392d5ae04eacb9920b9674ca523b676c90c7a1d2841b1267ba9ba614"></a>DECOMP_SVD <div class="python_language">Python: cv.DECOMP_SVD</div></td><td class="fielddoc"><p>singular value decomposition (<a class="el" href="../../df/df7/classcv_1_1SVD.html" title="Singular Value Decomposition. ">SVD</a>) method; the system can be over-defined and/or the matrix src1 can be singular </p>
</td></tr>
<tr><td class="fieldname"><a id="ggaaf9ea5dcc392d5ae04eacb9920b9674ca3fc1b148b39f0ca4ac5fc6e0f1b7198b"></a>DECOMP_EIG <div class="python_language">Python: cv.DECOMP_EIG</div></td><td class="fielddoc"><p>eigenvalue decomposition; the matrix src1 must be symmetrical </p>
</td></tr>
<tr><td class="fieldname"><a id="ggaaf9ea5dcc392d5ae04eacb9920b9674ca33cf860f98004310374a81d2c01715da"></a>DECOMP_CHOLESKY <div class="python_language">Python: cv.DECOMP_CHOLESKY</div></td><td class="fielddoc"><p>Cholesky \(LL^T\) factorization; the matrix src1 must be symmetrical and positively defined </p>
</td></tr>
<tr><td class="fieldname"><a id="ggaaf9ea5dcc392d5ae04eacb9920b9674cab086be5a080138d7db9b11dab378d845"></a>DECOMP_QR <div class="python_language">Python: cv.DECOMP_QR</div></td><td class="fielddoc"><p>QR factorization; the system can be over-defined and/or the matrix src1 can be singular </p>
</td></tr>
<tr><td class="fieldname"><a id="ggaaf9ea5dcc392d5ae04eacb9920b9674ca13eaae0241295166140291223db12166"></a>DECOMP_NORMAL <div class="python_language">Python: cv.DECOMP_NORMAL</div></td><td class="fielddoc"><p>while all the previous flags are mutually exclusive, this flag can be used together with any of the previous; it means that the normal equations \(\texttt{src1}^T\cdot\texttt{src1}\cdot\texttt{dst}=\texttt{src1}^T\texttt{src2}\) are solved instead of the original system \(\texttt{src1}\cdot\texttt{dst}=\texttt{src2}\) </p>
</td></tr>
</table>
</div>
</div>
<a id="gaf4dde112b483b38175621befedda1f1c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf4dde112b483b38175621befedda1f1c">◆ </a></span>DftFlags</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../d2/de8/group__core__array.html#gaf4dde112b483b38175621befedda1f1c">cv::DftFlags</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../df/dc3/core_2include_2opencv2_2core_2base_8hpp.html">opencv2/core/base.hpp</a>&gt;</code></p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="ggaf4dde112b483b38175621befedda1f1ca4e01d7e91cae1dbb68a26767d7b636be"></a>DFT_INVERSE <div class="python_language">Python: cv.DFT_INVERSE</div></td><td class="fielddoc"><p>performs an inverse 1D or 2D transform instead of the default forward transform. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggaf4dde112b483b38175621befedda1f1ca74746fb171aa4bfc08ace28d73f52375"></a>DFT_SCALE <div class="python_language">Python: cv.DFT_SCALE</div></td><td class="fielddoc"><p>scales the result: divide it by the number of array elements. Normally, it is combined with DFT_INVERSE. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggaf4dde112b483b38175621befedda1f1ca1744dc1cf1249944bc841e78c1565b7f"></a>DFT_ROWS <div class="python_language">Python: cv.DFT_ROWS</div></td><td class="fielddoc"><p>performs a forward or inverse transform of every individual row of the input matrix; this flag enables you to transform multiple vectors simultaneously and can be used to decrease the overhead (which is sometimes several times larger than the processing itself) to perform 3D and higher-dimensional transformations and so forth. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggaf4dde112b483b38175621befedda1f1ca07b45079b38d60e7837dfb666a55299b"></a>DFT_COMPLEX_OUTPUT <div class="python_language">Python: cv.DFT_COMPLEX_OUTPUT</div></td><td class="fielddoc"><p>performs a forward transformation of 1D or 2D real array; the result, though being a complex array, has complex-conjugate symmetry (<em>CCS</em>, see the function description below for details), and such an array can be packed into a real array of the same size as input, which is the fastest option and which is what the function does by default; however, you may wish to get a full complex array (for simpler spectrum analysis, and so on) - pass the flag to enable the function to produce a full-size complex output array. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggaf4dde112b483b38175621befedda1f1ca28347c7846e5eaed83e019cd003e8e03"></a>DFT_REAL_OUTPUT <div class="python_language">Python: cv.DFT_REAL_OUTPUT</div></td><td class="fielddoc"><p>performs an inverse transformation of a 1D or 2D complex array; the result is normally a complex array of the same size, however, if the input array has conjugate-complex symmetry (for example, it is a result of forward transformation with DFT_COMPLEX_OUTPUT flag), the output is a real array; while the function itself does not check whether the input is symmetrical or not, you can pass the flag and then the function will assume the symmetry and produce the real output array (note that when the input is packed into a real array and inverse transformation is executed, the function treats the input as a packed complex-conjugate symmetrical array, and the output will also be a real array). </p>
</td></tr>
<tr><td class="fieldname"><a id="ggaf4dde112b483b38175621befedda1f1caa5ccb5f191a65e2d11a5ceba1f886efd"></a>DFT_COMPLEX_INPUT <div class="python_language">Python: cv.DFT_COMPLEX_INPUT</div></td><td class="fielddoc"><p>specifies that input is complex input. If this flag is set, the input must have 2 channels. On the other hand, for backwards compatibility reason, if input has 2 channels, input is already considered complex. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggaf4dde112b483b38175621befedda1f1ca7d18108cbce9d52e6496633c713587da"></a>DCT_INVERSE <div class="python_language">Python: cv.DCT_INVERSE</div></td><td class="fielddoc"><p>performs an inverse 1D or 2D transform instead of the default forward transform. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggaf4dde112b483b38175621befedda1f1ca49bc8de8aedbe7fabb8960445133e494"></a>DCT_ROWS <div class="python_language">Python: cv.DCT_ROWS</div></td><td class="fielddoc"><p>performs a forward or inverse transform of every individual row of the input matrix. This flag enables you to transform multiple vectors simultaneously and can be used to decrease the overhead (which is sometimes several times larger than the processing itself) to perform 3D and higher-dimensional transforms and so forth. </p>
</td></tr>
</table>
</div>
</div>
<a id="ga66643400559695a653d08e2000809060"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga66643400559695a653d08e2000809060">◆ </a></span>GemmFlags</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../d2/de8/group__core__array.html#ga66643400559695a653d08e2000809060">cv::GemmFlags</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../df/dc3/core_2include_2opencv2_2core_2base_8hpp.html">opencv2/core/base.hpp</a>&gt;</code></p>
<p>generalized matrix multiplication flags </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga66643400559695a653d08e2000809060a04b6ef29f9ae9332d139828ffc7c1f39"></a>GEMM_1_T <div class="python_language">Python: cv.GEMM_1_T</div></td><td class="fielddoc"><p>transposes src1 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga66643400559695a653d08e2000809060a188bdf58e57b4b8f0685451ba15cdd2d"></a>GEMM_2_T <div class="python_language">Python: cv.GEMM_2_T</div></td><td class="fielddoc"><p>transposes src2 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga66643400559695a653d08e2000809060a6ba75d49e23663b42c4cc5dcd1cc5752"></a>GEMM_3_T <div class="python_language">Python: cv.GEMM_3_T</div></td><td class="fielddoc"><p>transposes src3 </p>
</td></tr>
</table>
</div>
</div>
<a id="gad12cefbcb5291cf958a85b4b67b6149f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad12cefbcb5291cf958a85b4b67b6149f">◆ </a></span>NormTypes</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../d2/de8/group__core__array.html#gad12cefbcb5291cf958a85b4b67b6149f">cv::NormTypes</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../df/dc3/core_2include_2opencv2_2core_2base_8hpp.html">opencv2/core/base.hpp</a>&gt;</code></p>
<p>norm types</p>
<p>src1 and src2 denote input arrays. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="ggad12cefbcb5291cf958a85b4b67b6149fad33872d928c74f8a49d1ba06d72aefc3"></a>NORM_INF <div class="python_language">Python: cv.NORM_INF</div></td><td class="fielddoc"><p class="formulaDsp">
\[ norm = \forkthree {\|\texttt{src1}\|_{L_{\infty}} = \max _I | \texttt{src1} (I)|}{if \(\texttt{normType} = \texttt{NORM_INF}\) } {\|\texttt{src1}-\texttt{src2}\|_{L_{\infty}} = \max _I | \texttt{src1} (I) - \texttt{src2} (I)|}{if \(\texttt{normType} = \texttt{NORM_INF}\) } {\frac{\|\texttt{src1}-\texttt{src2}\|_{L_{\infty}} }{\|\texttt{src2}\|_{L_{\infty}} }}{if \(\texttt{normType} = \texttt{NORM_RELATIVE | NORM_INF}\) } \]
</p>
 </td></tr>
<tr><td class="fieldname"><a id="ggad12cefbcb5291cf958a85b4b67b6149fab55c78ff204a979026c026ea19de65c9"></a>NORM_L1 <div class="python_language">Python: cv.NORM_L1</div></td><td class="fielddoc"><p class="formulaDsp">
\[ norm = \forkthree {\| \texttt{src1} \| _{L_1} = \sum _I | \texttt{src1} (I)|}{if \(\texttt{normType} = \texttt{NORM_L1}\)} { \| \texttt{src1} - \texttt{src2} \| _{L_1} = \sum _I | \texttt{src1} (I) - \texttt{src2} (I)|}{if \(\texttt{normType} = \texttt{NORM_L1}\) } { \frac{\|\texttt{src1}-\texttt{src2}\|_{L_1} }{\|\texttt{src2}\|_{L_1}} }{if \(\texttt{normType} = \texttt{NORM_RELATIVE | NORM_L1}\) } \]
</p>
 </td></tr>
<tr><td class="fieldname"><a id="ggad12cefbcb5291cf958a85b4b67b6149fa7bacbe84d400336a8f26297d8e80e3a2"></a>NORM_L2 <div class="python_language">Python: cv.NORM_L2</div></td><td class="fielddoc"><p class="formulaDsp">
\[ norm = \forkthree { \| \texttt{src1} \| _{L_2} = \sqrt{\sum_I \texttt{src1}(I)^2} }{if \(\texttt{normType} = \texttt{NORM_L2}\) } { \| \texttt{src1} - \texttt{src2} \| _{L_2} = \sqrt{\sum_I (\texttt{src1}(I) - \texttt{src2}(I))^2} }{if \(\texttt{normType} = \texttt{NORM_L2}\) } { \frac{\|\texttt{src1}-\texttt{src2}\|_{L_2} }{\|\texttt{src2}\|_{L_2}} }{if \(\texttt{normType} = \texttt{NORM_RELATIVE | NORM_L2}\) } \]
</p>
 </td></tr>
<tr><td class="fieldname"><a id="ggad12cefbcb5291cf958a85b4b67b6149fabe948af03c9289b0dd7e663d5c035f5a"></a>NORM_L2SQR <div class="python_language">Python: cv.NORM_L2SQR</div></td><td class="fielddoc"><p class="formulaDsp">
\[ norm = \forkthree { \| \texttt{src1} \| _{L_2} ^{2} = \sum_I \texttt{src1}(I)^2} {if \(\texttt{normType} = \texttt{NORM_L2SQR}\)} { \| \texttt{src1} - \texttt{src2} \| _{L_2} ^{2} = \sum_I (\texttt{src1}(I) - \texttt{src2}(I))^2 }{if \(\texttt{normType} = \texttt{NORM_L2SQR}\) } { \left(\frac{\|\texttt{src1}-\texttt{src2}\|_{L_2} }{\|\texttt{src2}\|_{L_2}}\right)^2 }{if \(\texttt{normType} = \texttt{NORM_RELATIVE | NORM_L2SQR}\) } \]
</p>
 </td></tr>
<tr><td class="fieldname"><a id="ggad12cefbcb5291cf958a85b4b67b6149fa4b063afd04aebb8dd07085a1207da727"></a>NORM_HAMMING <div class="python_language">Python: cv.NORM_HAMMING</div></td><td class="fielddoc"><p>In the case of one input array, calculates the <a class="el" href="../../d3/d59/structcv_1_1Hamming.html">Hamming</a> distance of the array from zero, In the case of two input arrays, calculates the <a class="el" href="../../d3/d59/structcv_1_1Hamming.html">Hamming</a> distance between the arrays. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggad12cefbcb5291cf958a85b4b67b6149fa7fab9cda83e79380cd273c49de8e3231"></a>NORM_HAMMING2 <div class="python_language">Python: cv.NORM_HAMMING2</div></td><td class="fielddoc"><p>Similar to NORM_HAMMING, but in the calculation, each two bits of the input sequence will be added and treated as a single bit to be used in the same calculation as NORM_HAMMING. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggad12cefbcb5291cf958a85b4b67b6149faaabf1ea549554e2cbdfde2acfcfc5374"></a>NORM_TYPE_MASK <div class="python_language">Python: cv.NORM_TYPE_MASK</div></td><td class="fielddoc"><p>bit-mask which can be used to separate norm type from norm flags </p>
</td></tr>
<tr><td class="fieldname"><a id="ggad12cefbcb5291cf958a85b4b67b6149fa0a85f9203dcdf3fbc1cca589b6f5df39"></a>NORM_RELATIVE <div class="python_language">Python: cv.NORM_RELATIVE</div></td><td class="fielddoc"><p>flag </p>
</td></tr>
<tr><td class="fieldname"><a id="ggad12cefbcb5291cf958a85b4b67b6149fa9f0c1c342a18114d47b516a88e29822e"></a>NORM_MINMAX <div class="python_language">Python: cv.NORM_MINMAX</div></td><td class="fielddoc"><p>flag </p>
</td></tr>
</table>
</div>
</div>
<a id="ga14cdedf2933367eb9395ec16798af994"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga14cdedf2933367eb9395ec16798af994">◆ </a></span>ReduceTypes</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../d2/de8/group__core__array.html#ga14cdedf2933367eb9395ec16798af994">cv::ReduceTypes</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga14cdedf2933367eb9395ec16798af994a101441e283ed69f20cfc5468114f9867"></a>REDUCE_SUM <div class="python_language">Python: cv.REDUCE_SUM</div></td><td class="fielddoc"><p>the output is the sum of all rows/columns of the matrix. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga14cdedf2933367eb9395ec16798af994a85f039992a454ca367bc190529766c7e"></a>REDUCE_AVG <div class="python_language">Python: cv.REDUCE_AVG</div></td><td class="fielddoc"><p>the output is the mean vector of all rows/columns of the matrix. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga14cdedf2933367eb9395ec16798af994a928b4c3eb0a038ea41b61d122c0495ee"></a>REDUCE_MAX <div class="python_language">Python: cv.REDUCE_MAX</div></td><td class="fielddoc"><p>the output is the maximum (column/row-wise) of all rows/columns of the matrix. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga14cdedf2933367eb9395ec16798af994a1f40a2ed66c8a8b8198186da47ec7b76"></a>REDUCE_MIN <div class="python_language">Python: cv.REDUCE_MIN</div></td><td class="fielddoc"><p>the output is the minimum (column/row-wise) of all rows/columns of the matrix. </p>
</td></tr>
</table>
</div>
</div>
<a id="ga6f45d55c0b1cc9d97f5353a7c8a7aac2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6f45d55c0b1cc9d97f5353a7c8a7aac2">◆ </a></span>RotateFlags</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../d2/de8/group__core__array.html#ga6f45d55c0b1cc9d97f5353a7c8a7aac2">cv::RotateFlags</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga6f45d55c0b1cc9d97f5353a7c8a7aac2a0419ea25335f7df5c771a06551a91d2b"></a>ROTATE_90_CLOCKWISE <div class="python_language">Python: cv.ROTATE_90_CLOCKWISE</div></td><td class="fielddoc"><p>Rotate 90 degrees clockwise. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga6f45d55c0b1cc9d97f5353a7c8a7aac2aa65044d24dcdbd15f48fe3887d2e4b16"></a>ROTATE_180 <div class="python_language">Python: cv.ROTATE_180</div></td><td class="fielddoc"><p>Rotate 180 degrees clockwise. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga6f45d55c0b1cc9d97f5353a7c8a7aac2a15ff5052b63aa43a334c865ebd8bb2fd"></a>ROTATE_90_COUNTERCLOCKWISE <div class="python_language">Python: cv.ROTATE_90_COUNTERCLOCKWISE</div></td><td class="fielddoc"><p>Rotate 270 degrees clockwise. </p>
</td></tr>
</table>
</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga6fef31bc8c4071cbc114a758a2b79c14"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6fef31bc8c4071cbc114a758a2b79c14">◆ </a></span>absdiff()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::absdiff </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.absdiff(</td><td class="paramname">src1, src2[, dst]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Calculates the per-element absolute difference between two arrays or between an array and a scalar. </p>
<p>The function <a class="el" href="../../d2/de8/group__core__array.html#ga6fef31bc8c4071cbc114a758a2b79c14" title="Calculates the per-element absolute difference between two arrays or between an array and a scalar...">cv::absdiff</a> calculates: Absolute difference between two arrays when they have the same size and type: </p><p class="formulaDsp">
\[\texttt{dst}(I) = \texttt{saturate} (| \texttt{src1}(I) - \texttt{src2}(I)|)\]
</p>
<p> Absolute difference between an array and a scalar when the second array is constructed from Scalar or has as many elements as the number of channels in <code>src1</code>: </p><p class="formulaDsp">
\[\texttt{dst}(I) = \texttt{saturate} (| \texttt{src1}(I) - \texttt{src2} |)\]
</p>
<p> Absolute difference between a scalar and an array when the first array is constructed from Scalar or has as many elements as the number of channels in <code>src2</code>: </p><p class="formulaDsp">
\[\texttt{dst}(I) = \texttt{saturate} (| \texttt{src1} - \texttt{src2}(I) |)\]
</p>
<p> where I is a multi-dimensional index of array elements. In case of multi-channel arrays, each channel is processed independently. </p><dl class="section note"><dt>Note</dt><dd>Saturation is not applied when the arrays have the depth CV_32S. You may even get a negative value in the case of overflow. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src1</td><td>first input array or a scalar. </td></tr>
    <tr><td class="paramname">src2</td><td>second input array or a scalar. </td></tr>
    <tr><td class="paramname">dst</td><td>output array that has the same size and type as input arrays. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd>cv::abs(const Mat&amp;) </dd></dl>
</div>
</div>
<a id="ga10ac1bfb180e2cfda1701d06c24fdbd6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga10ac1bfb180e2cfda1701d06c24fdbd6">◆ </a></span>add()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::add </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>mask</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>()</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>dtype</em> = <code>-1</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.add(</td><td class="paramname">src1, src2[, dst[, mask[, dtype]]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Calculates the per-element sum of two arrays or an array and a scalar. </p>
<p>The function add calculates:</p><ul>
<li>Sum of two arrays when both input arrays have the same size and the same number of channels: <p class="formulaDsp">
\[\texttt{dst}(I) = \texttt{saturate} ( \texttt{src1}(I) + \texttt{src2}(I)) \quad \texttt{if mask}(I) \ne0\]
</p>
</li>
<li>Sum of an array and a scalar when src2 is constructed from Scalar or has the same number of elements as <code>src1.channels()</code>: <p class="formulaDsp">
\[\texttt{dst}(I) = \texttt{saturate} ( \texttt{src1}(I) + \texttt{src2} ) \quad \texttt{if mask}(I) \ne0\]
</p>
</li>
<li>Sum of a scalar and an array when src1 is constructed from Scalar or has the same number of elements as <code>src2.channels()</code>: <p class="formulaDsp">
\[\texttt{dst}(I) = \texttt{saturate} ( \texttt{src1} + \texttt{src2}(I) ) \quad \texttt{if mask}(I) \ne0\]
</p>
 where <code>I</code> is a multi-dimensional index of array elements. In case of multi-channel arrays, each channel is processed independently.</li>
</ul>
<p>The first function in the list above can be replaced with matrix expressions: </p><div class="fragment"><div class="line">dst = src1 + src2;</div><div class="line">dst += src1; <span class="comment">// equivalent to add(dst, src1, dst);</span></div></div><!-- fragment --><p> The input arrays and the output array can all have the same or different depths. For example, you can add a 16-bit unsigned array to a 8-bit signed array and store the sum as a 32-bit floating-point array. Depth of the output array is determined by the dtype parameter. In the second and third cases above, as well as in the first case, when <a class="el" href="../../d0/daf/group__projection.html#ga8b5e5413af41caf3f2a0bbf4cdf517a8" title="Returns the depth of a point transformed by a rigid transform. ">src1.depth()</a> == <a class="el" href="../../d0/daf/group__projection.html#ga8b5e5413af41caf3f2a0bbf4cdf517a8" title="Returns the depth of a point transformed by a rigid transform. ">src2.depth()</a>, dtype can be set to the default -1. In this case, the output array will have the same depth as the input array, be it src1, src2 or both. </p><dl class="section note"><dt>Note</dt><dd>Saturation is not applied when the output array has the depth CV_32S. You may even get result of an incorrect sign in the case of overflow. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src1</td><td>first input array or a scalar. </td></tr>
    <tr><td class="paramname">src2</td><td>second input array or a scalar. </td></tr>
    <tr><td class="paramname">dst</td><td>output array that has the same size and number of channels as the input array(s); the depth is defined by dtype or src1/src2. </td></tr>
    <tr><td class="paramname">mask</td><td>optional operation mask - 8-bit single channel array, that specifies elements of the output array to be changed. </td></tr>
    <tr><td class="paramname">dtype</td><td>optional depth of the output array (see the discussion below). </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d2/de8/group__core__array.html#gaa0f00d98b4b5edeaeb7b8333b2de353b" title="Calculates the per-element difference between two arrays or array and a scalar. ">subtract</a>, <a class="el" href="../../d2/de8/group__core__array.html#gafafb2513349db3bcff51f54ee5592a19" title="Calculates the weighted sum of two arrays. ">addWeighted</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga9e0845db4135f55dcf20227402f00d98" title="Calculates the sum of a scaled array and another array. ">scaleAdd</a>, <a class="el" href="../../d3/d63/classcv_1_1Mat.html#adf88c60c5b4980e05bb556080916978b" title="Converts an array to another data type with optional scaling. ">Mat::convertTo</a> </dd></dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../d0/d38/modules_2shape_2samples_2shape_example_8cpp-example.html#a4">modules/shape/samples/shape_example.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="gafafb2513349db3bcff51f54ee5592a19"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gafafb2513349db3bcff51f54ee5592a19">◆ </a></span>addWeighted()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::addWeighted </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>alpha</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>beta</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>gamma</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>dtype</em> = <code>-1</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.addWeighted(</td><td class="paramname">src1, alpha, src2, beta, gamma[, dst[, dtype]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Calculates the weighted sum of two arrays. </p>
<p>The function addWeighted calculates the weighted sum of two arrays as follows: </p><p class="formulaDsp">
\[\texttt{dst} (I)= \texttt{saturate} ( \texttt{src1} (I)* \texttt{alpha} + \texttt{src2} (I)* \texttt{beta} + \texttt{gamma} )\]
</p>
<p> where I is a multi-dimensional index of array elements. In case of multi-channel arrays, each channel is processed independently. The function can be replaced with a matrix expression: </p><div class="fragment"><div class="line">dst = src1*alpha + src2*beta + gamma;</div></div><!-- fragment --> <dl class="section note"><dt>Note</dt><dd>Saturation is not applied when the output array has the depth CV_32S. You may even get result of an incorrect sign in the case of overflow. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src1</td><td>first input array. </td></tr>
    <tr><td class="paramname">alpha</td><td>weight of the first array elements. </td></tr>
    <tr><td class="paramname">src2</td><td>second input array of the same size and channel number as src1. </td></tr>
    <tr><td class="paramname">beta</td><td>weight of the second array elements. </td></tr>
    <tr><td class="paramname">gamma</td><td>scalar added to each sum. </td></tr>
    <tr><td class="paramname">dst</td><td>output array that has the same size and number of channels as the input arrays. </td></tr>
    <tr><td class="paramname">dtype</td><td>optional depth of the output array; when both input arrays have the same depth, dtype can be set to -1, which will be equivalent to <a class="el" href="../../d0/daf/group__projection.html#ga8b5e5413af41caf3f2a0bbf4cdf517a8" title="Returns the depth of a point transformed by a rigid transform. ">src1.depth()</a>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d2/de8/group__core__array.html#ga10ac1bfb180e2cfda1701d06c24fdbd6" title="Calculates the per-element sum of two arrays or an array and a scalar. ">add</a>, <a class="el" href="../../d2/de8/group__core__array.html#gaa0f00d98b4b5edeaeb7b8333b2de353b" title="Calculates the per-element difference between two arrays or array and a scalar. ">subtract</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga9e0845db4135f55dcf20227402f00d98" title="Calculates the sum of a scaled array and another array. ">scaleAdd</a>, <a class="el" href="../../d3/d63/classcv_1_1Mat.html#adf88c60c5b4980e05bb556080916978b" title="Converts an array to another data type with optional scaling. ">Mat::convertTo</a> </dd></dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../dc/dbc/samples_2cpp_2tutorial_code_2HighGUI_2AddingImagesTrackbar_8cpp-example.html#a1">samples/cpp/tutorial_code/HighGUI/AddingImagesTrackbar.cpp</a>, <a class="el" href="../../d3/d94/samples_2cpp_2tutorial_code_2ImgTrans_2Sobel_Demo_8cpp-example.html#a16">samples/cpp/tutorial_code/ImgTrans/Sobel_Demo.cpp</a>, and <a class="el" href="../../d4/d88/samples_2dnn_2segmentation_8cpp-example.html#a22">samples/dnn/segmentation.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="ga4ba778a1c57f83233b1d851c83f5a622"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga4ba778a1c57f83233b1d851c83f5a622">◆ </a></span>batchDistance()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::batchDistance </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dist</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>dtype</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>nidx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>normType</em> = <code><a class="el" href="../../d2/de8/group__core__array.html#ggad12cefbcb5291cf958a85b4b67b6149fa7bacbe84d400336a8f26297d8e80e3a2">NORM_L2</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>K</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>mask</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>()</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>update</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool </td>
          <td class="paramname"><em>crosscheck</em> = <code>false</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dist, nidx</td><td>=</td><td>cv.batchDistance(</td><td class="paramname">src1, src2, dtype[, dist[, nidx[, normType[, K[, mask[, update[, crosscheck]]]]]]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>naive nearest neighbor finder </p>
<p>see <a href="http://en.wikipedia.org/wiki/Nearest_neighbor_search">http://en.wikipedia.org/wiki/Nearest_neighbor_search</a> </p><dl class="todo"><dt><b><a class="el" href="../../dd/da0/todo.html#_todo000002">Todo:</a></b></dt><dd>document </dd></dl>
</div>
</div>
<a id="ga60b4d04b251ba5eb1392c34425497e14"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga60b4d04b251ba5eb1392c34425497e14">◆ </a></span>bitwise_and()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::bitwise_and </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>mask</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>()</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.bitwise_and(</td><td class="paramname">src1, src2[, dst[, mask]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>computes bitwise conjunction of the two arrays (dst = src1 &amp; src2) Calculates the per-element bit-wise conjunction of two arrays or an array and a scalar. </p>
<p>The function <a class="el" href="../../d2/de8/group__core__array.html#ga60b4d04b251ba5eb1392c34425497e14" title="computes bitwise conjunction of the two arrays (dst = src1 &amp; src2) Calculates the per-element bit-wis...">cv::bitwise_and</a> calculates the per-element bit-wise logical conjunction for: Two arrays when src1 and src2 have the same size: </p><p class="formulaDsp">
\[\texttt{dst} (I) = \texttt{src1} (I) \wedge \texttt{src2} (I) \quad \texttt{if mask} (I) \ne0\]
</p>
<p> An array and a scalar when src2 is constructed from Scalar or has the same number of elements as <code>src1.channels()</code>: </p><p class="formulaDsp">
\[\texttt{dst} (I) = \texttt{src1} (I) \wedge \texttt{src2} \quad \texttt{if mask} (I) \ne0\]
</p>
<p> A scalar and an array when src1 is constructed from Scalar or has the same number of elements as <code>src2.channels()</code>: </p><p class="formulaDsp">
\[\texttt{dst} (I) = \texttt{src1} \wedge \texttt{src2} (I) \quad \texttt{if mask} (I) \ne0\]
</p>
<p> In case of floating-point arrays, their machine-specific bit representations (usually IEEE754-compliant) are used for the operation. In case of multi-channel arrays, each channel is processed independently. In the second and third cases above, the scalar is first converted to the array type. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src1</td><td>first input array or a scalar. </td></tr>
    <tr><td class="paramname">src2</td><td>second input array or a scalar. </td></tr>
    <tr><td class="paramname">dst</td><td>output array that has the same size and type as the input arrays. </td></tr>
    <tr><td class="paramname">mask</td><td>optional operation mask, 8-bit single channel array, that specifies elements of the output array to be changed. </td></tr>
  </table>
  </dd>
</dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../db/d75/samples_2cpp_2create_mask_8cpp-example.html#a18">samples/cpp/create_mask.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="ga0002cf8b418479f4cb49a75442baee2f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0002cf8b418479f4cb49a75442baee2f">◆ </a></span>bitwise_not()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::bitwise_not </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>mask</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>()</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.bitwise_not(</td><td class="paramname">src[, dst[, mask]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Inverts every bit of an array. </p>
<p>The function <a class="el" href="../../d2/de8/group__core__array.html#ga0002cf8b418479f4cb49a75442baee2f" title="Inverts every bit of an array. ">cv::bitwise_not</a> calculates per-element bit-wise inversion of the input array: </p><p class="formulaDsp">
\[\texttt{dst} (I) = \neg \texttt{src} (I)\]
</p>
<p> In case of a floating-point input array, its machine-specific bit representation (usually IEEE754-compliant) is used for the operation. In case of multi-channel arrays, each channel is processed independently. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input array. </td></tr>
    <tr><td class="paramname">dst</td><td>output array that has the same size and type as the input array. </td></tr>
    <tr><td class="paramname">mask</td><td>optional operation mask, 8-bit single channel array, that specifies elements of the output array to be changed. </td></tr>
  </table>
  </dd>
</dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../d6/d7f/samples_2cpp_2camshiftdemo_8cpp-example.html#a62">samples/cpp/camshiftdemo.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="gab85523db362a4e26ff0c703793a719b4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab85523db362a4e26ff0c703793a719b4">◆ </a></span>bitwise_or()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::bitwise_or </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>mask</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>()</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.bitwise_or(</td><td class="paramname">src1, src2[, dst[, mask]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Calculates the per-element bit-wise disjunction of two arrays or an array and a scalar. </p>
<p>The function <a class="el" href="../../d2/de8/group__core__array.html#gab85523db362a4e26ff0c703793a719b4" title="Calculates the per-element bit-wise disjunction of two arrays or an array and a scalar. ">cv::bitwise_or</a> calculates the per-element bit-wise logical disjunction for: Two arrays when src1 and src2 have the same size: </p><p class="formulaDsp">
\[\texttt{dst} (I) = \texttt{src1} (I) \vee \texttt{src2} (I) \quad \texttt{if mask} (I) \ne0\]
</p>
<p> An array and a scalar when src2 is constructed from Scalar or has the same number of elements as <code>src1.channels()</code>: </p><p class="formulaDsp">
\[\texttt{dst} (I) = \texttt{src1} (I) \vee \texttt{src2} \quad \texttt{if mask} (I) \ne0\]
</p>
<p> A scalar and an array when src1 is constructed from Scalar or has the same number of elements as <code>src2.channels()</code>: </p><p class="formulaDsp">
\[\texttt{dst} (I) = \texttt{src1} \vee \texttt{src2} (I) \quad \texttt{if mask} (I) \ne0\]
</p>
<p> In case of floating-point arrays, their machine-specific bit representations (usually IEEE754-compliant) are used for the operation. In case of multi-channel arrays, each channel is processed independently. In the second and third cases above, the scalar is first converted to the array type. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src1</td><td>first input array or a scalar. </td></tr>
    <tr><td class="paramname">src2</td><td>second input array or a scalar. </td></tr>
    <tr><td class="paramname">dst</td><td>output array that has the same size and type as the input arrays. </td></tr>
    <tr><td class="paramname">mask</td><td>optional operation mask, 8-bit single channel array, that specifies elements of the output array to be changed. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="ga84b2d8188ce506593dcc3f8cd00e8e2c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga84b2d8188ce506593dcc3f8cd00e8e2c">◆ </a></span>bitwise_xor()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::bitwise_xor </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>mask</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>()</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.bitwise_xor(</td><td class="paramname">src1, src2[, dst[, mask]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Calculates the per-element bit-wise "exclusive or" operation on two arrays or an array and a scalar. </p>
<p>The function <a class="el" href="../../d2/de8/group__core__array.html#ga84b2d8188ce506593dcc3f8cd00e8e2c" title='Calculates the per-element bit-wise "exclusive or" operation on two arrays or an array and a scalar...'>cv::bitwise_xor</a> calculates the per-element bit-wise logical "exclusive-or" operation for: Two arrays when src1 and src2 have the same size: </p><p class="formulaDsp">
\[\texttt{dst} (I) = \texttt{src1} (I) \oplus \texttt{src2} (I) \quad \texttt{if mask} (I) \ne0\]
</p>
<p> An array and a scalar when src2 is constructed from Scalar or has the same number of elements as <code>src1.channels()</code>: </p><p class="formulaDsp">
\[\texttt{dst} (I) = \texttt{src1} (I) \oplus \texttt{src2} \quad \texttt{if mask} (I) \ne0\]
</p>
<p> A scalar and an array when src1 is constructed from Scalar or has the same number of elements as <code>src2.channels()</code>: </p><p class="formulaDsp">
\[\texttt{dst} (I) = \texttt{src1} \oplus \texttt{src2} (I) \quad \texttt{if mask} (I) \ne0\]
</p>
<p> In case of floating-point arrays, their machine-specific bit representations (usually IEEE754-compliant) are used for the operation. In case of multi-channel arrays, each channel is processed independently. In the 2nd and 3rd cases above, the scalar is first converted to the array type. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src1</td><td>first input array or a scalar. </td></tr>
    <tr><td class="paramname">src2</td><td>second input array or a scalar. </td></tr>
    <tr><td class="paramname">dst</td><td>output array that has the same size and type as the input arrays. </td></tr>
    <tr><td class="paramname">mask</td><td>optional operation mask, 8-bit single channel array, that specifies elements of the output array to be changed. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="ga247f571aa6244827d3d798f13892da58"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga247f571aa6244827d3d798f13892da58">◆ </a></span>borderInterpolate()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int cv::borderInterpolate </td>
          <td>(</td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>p</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>len</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>borderType</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.borderInterpolate(</td><td class="paramname">p, len, borderType</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Computes the source location of an extrapolated pixel. </p>
<p>The function computes and returns the coordinate of a donor pixel corresponding to the specified extrapolated pixel when using the specified extrapolation border mode. For example, if you use <a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5a697c1b011884a7c2bdc0e5caf7955661" title="cdefgh|abcdefgh|abcdefg ">cv::BORDER_WRAP</a> mode in the horizontal direction, <a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5ab3c5a6143d8120b95005fa7105a10bb4" title="gfedcb|abcdefgh|gfedcba ">cv::BORDER_REFLECT_101</a> in the vertical direction and want to compute value of the "virtual" pixel Point(-5, 100) in a floating-point image img , it looks like: </p><div class="fragment"><div class="line"><span class="keywordtype">float</span> val = img.at&lt;<span class="keywordtype">float</span>&gt;(<a class="code" href="../../d2/de8/group__core__array.html#ga247f571aa6244827d3d798f13892da58">borderInterpolate</a>(100, img.rows, <a class="code" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5ab3c5a6143d8120b95005fa7105a10bb4">cv::BORDER_REFLECT_101</a>),</div><div class="line">                          <a class="code" href="../../d2/de8/group__core__array.html#ga247f571aa6244827d3d798f13892da58">borderInterpolate</a>(-5, img.cols, <a class="code" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5a697c1b011884a7c2bdc0e5caf7955661">cv::BORDER_WRAP</a>));</div></div><!-- fragment --><p> Normally, the function is not called directly. It is used inside filtering functions and also in copyMakeBorder. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">p</td><td>0-based coordinate of the extrapolated pixel along one of the axes, likely &lt;0 or &gt;= len </td></tr>
    <tr><td class="paramname">len</td><td>Length of the array along the corresponding axis. </td></tr>
    <tr><td class="paramname">borderType</td><td>Border type, one of the <a class="el" href="../../d2/de8/group__core__array.html#ga209f2f4869e304c82d07739337eae7c5">BorderTypes</a>, except for <a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5a886a5eb6b466854d63f9e742d5c8eefe" title="uvwxyz|abcdefgh|ijklmno ">BORDER_TRANSPARENT</a> and <a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5a4fcb77ae62e1e1336c1c2b24a441995c" title="do not look outside of ROI ">BORDER_ISOLATED</a> . When borderType==<a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5aed2e4346047e265c8c5a6d0276dcd838" title="iiiiii|abcdefgh|iiiiiii with some specified i ">BORDER_CONSTANT</a> , the function always returns -1, regardless of p and len.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d2/de8/group__core__array.html#ga2ac1049c2c3dd25c2b41bffe17658a36" title="Forms a border around an image. ">copyMakeBorder</a> </dd></dl>
</div>
</div>
<a id="gae6ffa9354633f984246945d52823165d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae6ffa9354633f984246945d52823165d">◆ </a></span>calcCovarMatrix() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::calcCovarMatrix </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> * </td>
          <td class="paramname"><em>samples</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>nsamples</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp; </td>
          <td class="paramname"><em>covar</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp; </td>
          <td class="paramname"><em>mean</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>flags</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>ctype</em> = <code><a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga30a562691cc5987bc88eb7bb7a8faf2b">CV_64F</a></code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>covar, mean</td><td>=</td><td>cv.calcCovarMatrix(</td><td class="paramname">samples, mean, flags[, covar[, ctype]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Calculates the covariance matrix of a set of vectors. </p>
<p>The function <a class="el" href="../../d2/de8/group__core__array.html#gae6ffa9354633f984246945d52823165d" title="Calculates the covariance matrix of a set of vectors. ">cv::calcCovarMatrix</a> calculates the covariance matrix and, optionally, the mean vector of the set of input vectors. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">samples</td><td>samples stored as separate matrices </td></tr>
    <tr><td class="paramname">nsamples</td><td>number of samples </td></tr>
    <tr><td class="paramname">covar</td><td>output covariance matrix of the type ctype and square size. </td></tr>
    <tr><td class="paramname">mean</td><td>input or output (depending on the flags) array as the average value of the input vectors. </td></tr>
    <tr><td class="paramname">flags</td><td>operation flags as a combination of <a class="el" href="../../d0/de1/group__core.html#ga719ebd4a73f30f4fab258ab7616d0f0f" title="Covariation flags. ">CovarFlags</a> </td></tr>
    <tr><td class="paramname">ctype</td><td>type of the matrixl; it equals 'CV_64F' by default. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d3/d8d/classcv_1_1PCA.html" title="Principal Component Analysis. ">PCA</a>, <a class="el" href="../../d2/de8/group__core__array.html#gadc4e49f8f7a155044e3be1b9e3b270ab" title="Calculates the product of a matrix and its transposition. ">mulTransposed</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga4493aee129179459cbfc6064f051aa7d" title="Calculates the Mahalanobis distance between two vectors. ">Mahalanobis</a> </dd></dl>
<dl class="todo"><dt><b><a class="el" href="../../dd/da0/todo.html#_todo000003">Todo:</a></b></dt><dd>InputArrayOfArrays </dd></dl>
</div>
</div>
<a id="ga017122d912af19d7d0d2cccc2d63819f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga017122d912af19d7d0d2cccc2d63819f">◆ </a></span>calcCovarMatrix() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::calcCovarMatrix </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>samples</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>covar</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> </td>
          <td class="paramname"><em>mean</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>flags</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>ctype</em> = <code><a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga30a562691cc5987bc88eb7bb7a8faf2b">CV_64F</a></code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>covar, mean</td><td>=</td><td>cv.calcCovarMatrix(</td><td class="paramname">samples, mean, flags[, covar[, ctype]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p><dl class="section note"><dt>Note</dt><dd>use <a class="el" href="../../d0/de1/group__core.html#gga719ebd4a73f30f4fab258ab7616d0f0fadbac775ac8245aad5bfef994731c635f">COVAR_ROWS</a> or <a class="el" href="../../d0/de1/group__core.html#gga719ebd4a73f30f4fab258ab7616d0f0fac8cc5a80914e18d6100184a2829aa3c0">COVAR_COLS</a> flag </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">samples</td><td>samples stored as rows/columns of a single matrix. </td></tr>
    <tr><td class="paramname">covar</td><td>output covariance matrix of the type ctype and square size. </td></tr>
    <tr><td class="paramname">mean</td><td>input or output (depending on the flags) array as the average value of the input vectors. </td></tr>
    <tr><td class="paramname">flags</td><td>operation flags as a combination of <a class="el" href="../../d0/de1/group__core.html#ga719ebd4a73f30f4fab258ab7616d0f0f" title="Covariation flags. ">CovarFlags</a> </td></tr>
    <tr><td class="paramname">ctype</td><td>type of the matrixl; it equals 'CV_64F' by default. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="gac5f92f48ec32cacf5275969c33ee837d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac5f92f48ec32cacf5275969c33ee837d">◆ </a></span>cartToPolar()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::cartToPolar </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>magnitude</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>angle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool </td>
          <td class="paramname"><em>angleInDegrees</em> = <code>false</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>magnitude, angle</td><td>=</td><td>cv.cartToPolar(</td><td class="paramname">x, y[, magnitude[, angle[, angleInDegrees]]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Calculates the magnitude and angle of 2D vectors. </p>
<p>The function <a class="el" href="../../d2/de8/group__core__array.html#gac5f92f48ec32cacf5275969c33ee837d" title="Calculates the magnitude and angle of 2D vectors. ">cv::cartToPolar</a> calculates either the magnitude, angle, or both for every 2D vector (x(I),y(I)): </p><p class="formulaDsp">
\[\begin{array}{l} \texttt{magnitude} (I)= \sqrt{\texttt{x}(I)^2+\texttt{y}(I)^2} , \\ \texttt{angle} (I)= \texttt{atan2} ( \texttt{y} (I), \texttt{x} (I))[ \cdot180 / \pi ] \end{array}\]
</p>
<p>The angles are calculated with accuracy about 0.3 degrees. For the point (0,0), the angle is set to 0. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>array of x-coordinates; this must be a single-precision or double-precision floating-point array. </td></tr>
    <tr><td class="paramname">y</td><td>array of y-coordinates, that must have the same size and same type as x. </td></tr>
    <tr><td class="paramname">magnitude</td><td>output array of magnitudes of the same size and type as x. </td></tr>
    <tr><td class="paramname">angle</td><td>output array of angles that has the same size and type as x; the angles are measured in radians (from 0 to 2*Pi) or in degrees (0 to 360 degrees). </td></tr>
    <tr><td class="paramname">angleInDegrees</td><td>a flag, indicating whether the angles are measured in radians (which is by default), or in degrees. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d4/d86/group__imgproc__filter.html#gacea54f142e81b6758cb6f375ce782c8d" title="Calculates the first, second, third, or mixed image derivatives using an extended Sobel operator...">Sobel</a>, <a class="el" href="../../d4/d86/group__imgproc__filter.html#gaa13106761eedf14798f37aa2d60404c9" title="Calculates the first x- or y- image derivative using Scharr operator. ">Scharr</a> </dd></dl>
</div>
</div>
<a id="ga2bd19d89cae59361416736f87e3c7a64"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga2bd19d89cae59361416736f87e3c7a64">◆ </a></span>checkRange()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool cv::checkRange </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool </td>
          <td class="paramname"><em>quiet</em> = <code>true</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> * </td>
          <td class="paramname"><em>pos</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>minVal</em> = <code>-DBL_MAX</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>maxVal</em> = <code>DBL_MAX</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval, pos</td><td>=</td><td>cv.checkRange(</td><td class="paramname">a[, quiet[, minVal[, maxVal]]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Checks every element of an input array for invalid values. </p>
<p>The function <a class="el" href="../../d2/de8/group__core__array.html#ga2bd19d89cae59361416736f87e3c7a64" title="Checks every element of an input array for invalid values. ">cv::checkRange</a> checks that every array element is neither NaN nor infinite. When minVal &gt; -DBL_MAX and maxVal &lt; DBL_MAX, the function also checks that each value is between minVal and maxVal. In case of multi-channel arrays, each channel is processed independently. If some values are out of range, position of the first outlier is stored in pos (when pos != NULL). Then, the function either returns false (when quiet=true) or throws an exception. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">a</td><td>input array. </td></tr>
    <tr><td class="paramname">quiet</td><td>a flag, indicating whether the functions quietly return false when the array elements are out of range or they throw an exception. </td></tr>
    <tr><td class="paramname">pos</td><td>optional output parameter, when not NULL, must be a pointer to array of src.dims elements. </td></tr>
    <tr><td class="paramname">minVal</td><td>inclusive lower boundary of valid values range. </td></tr>
    <tr><td class="paramname">maxVal</td><td>exclusive upper boundary of valid values range. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="ga303cfb72acf8cbb36d884650c09a3a97"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga303cfb72acf8cbb36d884650c09a3a97">◆ </a></span>compare()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::compare </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>cmpop</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.compare(</td><td class="paramname">src1, src2, cmpop[, dst]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Performs the per-element comparison of two arrays or an array and scalar value. </p>
<p>The function compares: Elements of two arrays when src1 and src2 have the same size: </p><p class="formulaDsp">
\[\texttt{dst} (I) = \texttt{src1} (I) \,\texttt{cmpop}\, \texttt{src2} (I)\]
</p>
<p> Elements of src1 with a scalar src2 when src2 is constructed from Scalar or has a single element: </p><p class="formulaDsp">
\[\texttt{dst} (I) = \texttt{src1}(I) \,\texttt{cmpop}\, \texttt{src2}\]
</p>
<p> src1 with elements of src2 when src1 is constructed from Scalar or has a single element: </p><p class="formulaDsp">
\[\texttt{dst} (I) = \texttt{src1} \,\texttt{cmpop}\, \texttt{src2} (I)\]
</p>
<p> When the comparison result is true, the corresponding element of output array is set to 255. The comparison operations can be replaced with the equivalent matrix expressions: </p><div class="fragment"><div class="line">Mat dst1 = src1 &gt;= src2;</div><div class="line">Mat dst2 = src1 &lt; 8;</div><div class="line">...</div></div><!-- fragment --> <dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src1</td><td>first input array or a scalar; when it is an array, it must have a single channel. </td></tr>
    <tr><td class="paramname">src2</td><td>second input array or a scalar; when it is an array, it must have a single channel. </td></tr>
    <tr><td class="paramname">dst</td><td>output array of type ref CV_8U that has the same size and the same number of channels as the input arrays. </td></tr>
    <tr><td class="paramname">cmpop</td><td>a flag, that specifies correspondence between the arrays (<a class="el" href="../../d2/de8/group__core__array.html#ga0cc47ff833d40b58ecbe1d609a53d784" title="comparison types ">cv::CmpTypes</a>) </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d2/de8/group__core__array.html#ga2bd19d89cae59361416736f87e3c7a64" title="Checks every element of an input array for invalid values. ">checkRange</a>, <a class="el" href="../../d7/dcc/group__core__utils__softfloat.html#gac48df53b8fd34b87e7b121fa8fd4c379" title="Min and Max functions. ">min</a>, <a class="el" href="../../d7/dcc/group__core__utils__softfloat.html#ga78f988f6cfa6223610298cbd4f86ec66">max</a>, <a class="el" href="../../d7/d1b/group__imgproc__misc.html#gae8a4a146d1ca78c626a53577199e9c57" title="Applies a fixed-level threshold to each array element. ">threshold</a> </dd></dl>
</div>
</div>
<a id="ga6847337c0c55769e115a70e0f011b5ca"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6847337c0c55769e115a70e0f011b5ca">◆ </a></span>completeSymm()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::completeSymm </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> </td>
          <td class="paramname"><em>m</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool </td>
          <td class="paramname"><em>lowerToUpper</em> = <code>false</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>m</td><td>=</td><td>cv.completeSymm(</td><td class="paramname">m[, lowerToUpper]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Copies the lower or the upper half of a square matrix to its another half. </p>
<p>The function <a class="el" href="../../d2/de8/group__core__array.html#ga6847337c0c55769e115a70e0f011b5ca" title="Copies the lower or the upper half of a square matrix to its another half. ">cv::completeSymm</a> copies the lower or the upper half of a square matrix to its another half. The matrix diagonal remains unchanged:</p><ul>
<li>\(\texttt{m}_{ij}=\texttt{m}_{ji}\) for \(i &gt; j\) if lowerToUpper=false</li>
<li>\(\texttt{m}_{ij}=\texttt{m}_{ji}\) for \(i &lt; j\) if lowerToUpper=true</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">m</td><td>input-output floating-point square matrix. </td></tr>
    <tr><td class="paramname">lowerToUpper</td><td>operation flag; if true, the lower half is copied to the upper half. Otherwise, the upper half is copied to the lower half. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d2/de8/group__core__array.html#gaca7be533e3dac7feb70fc60635adf441" title="Flips a 2D array around vertical, horizontal, or both axes. ">flip</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga46630ed6c0ea6254a35f447289bd7404" title="Transposes a matrix. ">transpose</a> </dd></dl>
</div>
</div>
<a id="ga9c25d9ef44a2a48ecc3774b30cb80082"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9c25d9ef44a2a48ecc3774b30cb80082">◆ </a></span>convertFp16()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::convertFp16 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.convertFp16(</td><td class="paramname">src[, dst]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Converts an array to half precision floating number. </p>
<p>This function converts FP32 (single precision floating point) from/to FP16 (half precision floating point). CV_16S format is used to represent FP16 data. There are two use modes (src -&gt; dst): CV_32F -&gt; CV_16S and CV_16S -&gt; CV_32F. The input array has to have type of CV_32F or CV_16S to represent the bit depth. If the input array is neither of them, the function will raise an error. The format of half precision floating point is defined in IEEE 754-2008.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input array. </td></tr>
    <tr><td class="paramname">dst</td><td>output array. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="ga3460e9c9f37b563ab9dd550c4d8c4e7d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga3460e9c9f37b563ab9dd550c4d8c4e7d">◆ </a></span>convertScaleAbs()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::convertScaleAbs </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>alpha</em> = <code>1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>beta</em> = <code>0</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.convertScaleAbs(</td><td class="paramname">src[, dst[, alpha[, beta]]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Scales, calculates absolute values, and converts the result to 8-bit. </p>
<p>On each element of the input array, the function convertScaleAbs performs three operations sequentially: scaling, taking an absolute value, conversion to an unsigned 8-bit type: </p><p class="formulaDsp">
\[\texttt{dst} (I)= \texttt{saturate\_cast&lt;uchar&gt;} (| \texttt{src} (I)* \texttt{alpha} + \texttt{beta} |)\]
</p>
<p> In case of multi-channel arrays, the function processes each channel independently. When the output is not 8-bit, the operation can be emulated by calling the <a class="el" href="../../d3/d63/classcv_1_1Mat.html#adf88c60c5b4980e05bb556080916978b" title="Converts an array to another data type with optional scaling. ">Mat::convertTo</a> method (or by using matrix expressions) and then by calculating an absolute value of the result. For example: </p><div class="fragment"><div class="line">Mat_&lt;float&gt; A(30,30);</div><div class="line"><a class="code" href="../../d2/de8/group__core__array.html#ga1ba1026dca0807b27057ba6a49d258c0">randu</a>(A, <a class="code" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a>(-100), <a class="code" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a>(100));</div><div class="line">Mat_&lt;float&gt; B = A*5 + 3;</div><div class="line">B = <a class="code" href="../../d2/d75/namespacecv.html#af6df65b17fb11af6d34634b6dfa44683">abs</a>(B);</div><div class="line"><span class="comment">// Mat_&lt;float&gt; B = abs(A*5+3) will also do the job,</span></div><div class="line"><span class="comment">// but it will allocate a temporary matrix</span></div></div><!-- fragment --> <dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input array. </td></tr>
    <tr><td class="paramname">dst</td><td>output array. </td></tr>
    <tr><td class="paramname">alpha</td><td>optional scale factor. </td></tr>
    <tr><td class="paramname">beta</td><td>optional delta added to the scaled values. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d3/d63/classcv_1_1Mat.html#adf88c60c5b4980e05bb556080916978b" title="Converts an array to another data type with optional scaling. ">Mat::convertTo</a>, cv::abs(const Mat&amp;) </dd></dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../d6/ddf/samples_2cpp_2laplace_8cpp-example.html#a25">samples/cpp/laplace.cpp</a>, and <a class="el" href="../../d3/d94/samples_2cpp_2tutorial_code_2ImgTrans_2Sobel_Demo_8cpp-example.html#a15">samples/cpp/tutorial_code/ImgTrans/Sobel_Demo.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="ga2ac1049c2c3dd25c2b41bffe17658a36"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga2ac1049c2c3dd25c2b41bffe17658a36">◆ </a></span>copyMakeBorder()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::copyMakeBorder </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>top</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>bottom</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>left</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>right</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>borderType</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp; </td>
          <td class="paramname"><em>value</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a>()</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.copyMakeBorder(</td><td class="paramname">src, top, bottom, left, right, borderType[, dst[, value]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Forms a border around an image. </p>
<p>The function copies the source image into the middle of the destination image. The areas to the left, to the right, above and below the copied source image will be filled with extrapolated pixels. This is not what filtering functions based on it do (they extrapolate pixels on-fly), but what other more complex functions, including your own, may do to simplify image boundary handling.</p>
<p>The function supports the mode when src is already in the middle of dst . In this case, the function does not copy src itself but simply constructs the border, for example:</p>
<div class="fragment"><div class="line"><span class="comment">// let border be the same in all directions</span></div><div class="line"><span class="keywordtype">int</span> border=2;</div><div class="line"><span class="comment">// constructs a larger image to fit both the image and the border</span></div><div class="line">Mat gray_buf(rgb.rows + border*2, rgb.cols + border*2, rgb.depth());</div><div class="line"><span class="comment">// select the middle part of it w/o copying data</span></div><div class="line">Mat gray(gray_canvas, <a class="code" href="../../dc/d84/group__core__basic.html#ga11d95de507098e90bad732b9345402e8">Rect</a>(border, border, rgb.cols, rgb.rows));</div><div class="line"><span class="comment">// convert image from RGB to grayscale</span></div><div class="line"><a class="code" href="../../d8/d01/group__imgproc__color__conversions.html#ga397ae87e1288a81d2363b61574eb8cab">cvtColor</a>(rgb, gray, <a class="code" href="../../d8/d01/group__imgproc__color__conversions.html#gga4e0972be5de079fed4e3a10e24ef5ef0ae50d0c66ee53e974234ac84cf51d1d4e">COLOR_RGB2GRAY</a>);</div><div class="line"><span class="comment">// form a border in-place</span></div><div class="line"><a class="code" href="../../d2/de8/group__core__array.html#ga2ac1049c2c3dd25c2b41bffe17658a36">copyMakeBorder</a>(gray, gray_buf, border, border,</div><div class="line">               border, border, <a class="code" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5aa1de4cff95e3377d6d0cbe7569bd4e9f">BORDER_REPLICATE</a>);</div><div class="line"><span class="comment">// now do some custom filtering ...</span></div><div class="line">...</div></div><!-- fragment --> <dl class="section note"><dt>Note</dt><dd>When the source image is a part (ROI) of a bigger image, the function will try to use the pixels outside of the ROI to form a border. To disable this feature and always do extrapolation, as if src was not a ROI, use borderType | <a class="el" href="../../d2/de8/group__core__array.html#gga209f2f4869e304c82d07739337eae7c5a4fcb77ae62e1e1336c1c2b24a441995c" title="do not look outside of ROI ">BORDER_ISOLATED</a>.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>Source image. </td></tr>
    <tr><td class="paramname">dst</td><td>Destination image of the same type as src and the size Size(src.cols+left+right, src.rows+top+bottom) . </td></tr>
    <tr><td class="paramname">top</td><td>the top pixels </td></tr>
    <tr><td class="paramname">bottom</td><td>the bottom pixels </td></tr>
    <tr><td class="paramname">left</td><td>the left pixels </td></tr>
    <tr><td class="paramname">right</td><td>Parameter specifying how many pixels in each direction from the source image rectangle to extrapolate. For example, top=1, bottom=1, left=1, right=1 mean that 1 pixel-wide border needs to be built. </td></tr>
    <tr><td class="paramname">borderType</td><td>Border type. See borderInterpolate for details. </td></tr>
    <tr><td class="paramname">value</td><td>Border value if borderType==BORDER_CONSTANT .</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d2/de8/group__core__array.html#ga247f571aa6244827d3d798f13892da58" title="Computes the source location of an extrapolated pixel. ">borderInterpolate</a> </dd></dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../d6/d14/samples_2cpp_2tutorial_code_2ImgTrans_2copyMakeBorder_demo_8cpp-example.html#a12">samples/cpp/tutorial_code/ImgTrans/copyMakeBorder_demo.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="ga931a49489330f998452fc53e96e1719a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga931a49489330f998452fc53e96e1719a">◆ </a></span>copyTo()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::copyTo </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>mask</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.copyTo(</td><td class="paramname">src, mask[, dst]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>This is an overloaded member function, provided for convenience (python) Copies the matrix to another one. When the operation mask is specified, if the <a class="el" href="../../d3/d63/classcv_1_1Mat.html#a55ced2c8d844d683ea9a725c60037ad0" title="Allocates new array data if needed. ">Mat::create</a> call shown above reallocates the matrix, the newly allocated matrix is initialized with all zeros before copying the data. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>source matrix. </td></tr>
    <tr><td class="paramname">dst</td><td>Destination matrix. If it does not have a proper size or type before the operation, it is reallocated. </td></tr>
    <tr><td class="paramname">mask</td><td>Operation mask of the same size as *this. Its non-zero elements indicate which matrix elements need to be copied. The mask has to be of type CV_8U and can have 1 or multiple channels. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="gaa4b89393263bb4d604e0fe5986723914"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa4b89393263bb4d604e0fe5986723914">◆ </a></span>countNonZero()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int cv::countNonZero </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src</em></td><td>)</td>
          <td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.countNonZero(</td><td class="paramname">src</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Counts non-zero array elements. </p>
<p>The function returns the number of non-zero elements in src : </p><p class="formulaDsp">
\[\sum _{I: \; \texttt{src} (I) \ne0 } 1\]
</p>
 <dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>single-channel array. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d2/de8/group__core__array.html#ga191389f8a0e58180bb13a727782cd461" title="Calculates an average (mean) of array elements. ">mean</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga846c858f4004d59493d7c6a4354b301d">meanStdDev</a>, <a class="el" href="../../dc/d84/group__core__basic.html#ga4e556cb8ad35a643a1ea66e035711bb9">norm</a>, <a class="el" href="../../d2/de8/group__core__array.html#gab473bf2eb6d14ff97e89b355dac20707" title="Finds the global minimum and maximum in an array. ">minMaxLoc</a>, <a class="el" href="../../d2/de8/group__core__array.html#gae6ffa9354633f984246945d52823165d" title="Calculates the covariance matrix of a set of vectors. ">calcCovarMatrix</a> </dd></dl>
</div>
</div>
<a id="ga85aad4d668c01fbd64825f589e3696d4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga85aad4d668c01fbd64825f589e3696d4">◆ </a></span>dct()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::dct </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>flags</em> = <code>0</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.dct(</td><td class="paramname">src[, dst[, flags]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Performs a forward or inverse discrete Cosine transform of 1D or 2D array. </p>
<p>The function <a class="el" href="../../d2/de8/group__core__array.html#ga85aad4d668c01fbd64825f589e3696d4" title="Performs a forward or inverse discrete Cosine transform of 1D or 2D array. ">cv::dct</a> performs a forward or inverse discrete Cosine transform (DCT) of a 1D or 2D floating-point array:</p><ul>
<li>Forward Cosine transform of a 1D vector of N elements: <p class="formulaDsp">
\[Y = C^{(N)} \cdot X\]
</p>
 where <p class="formulaDsp">
\[C^{(N)}_{jk}= \sqrt{\alpha_j/N} \cos \left ( \frac{\pi(2k+1)j}{2N} \right )\]
</p>
 and \(\alpha_0=1\), \(\alpha_j=2\) for <em>j &gt; 0</em>.</li>
<li>Inverse Cosine transform of a 1D vector of N elements: <p class="formulaDsp">
\[X = \left (C^{(N)} \right )^{-1} \cdot Y = \left (C^{(N)} \right )^T \cdot Y\]
</p>
 (since \(C^{(N)}\) is an orthogonal matrix, \(C^{(N)} \cdot \left(C^{(N)}\right)^T = I\) )</li>
<li>Forward 2D Cosine transform of M x N matrix: <p class="formulaDsp">
\[Y = C^{(N)} \cdot X \cdot \left (C^{(N)} \right )^T\]
</p>
</li>
<li>Inverse 2D Cosine transform of M x N matrix: <p class="formulaDsp">
\[X = \left (C^{(N)} \right )^T \cdot X \cdot C^{(N)}\]
</p>
</li>
</ul>
<p>The function chooses the mode of operation by looking at the flags and size of the input array:</p><ul>
<li>If (flags &amp; <a class="el" href="../../d2/de8/group__core__array.html#ggaf4dde112b483b38175621befedda1f1ca7d18108cbce9d52e6496633c713587da">DCT_INVERSE</a>) == 0 , the function does a forward 1D or 2D transform. Otherwise, it is an inverse 1D or 2D transform.</li>
<li>If (flags &amp; <a class="el" href="../../d2/de8/group__core__array.html#ggaf4dde112b483b38175621befedda1f1ca49bc8de8aedbe7fabb8960445133e494">DCT_ROWS</a>) != 0 , the function performs a 1D transform of each row.</li>
<li>If the array is a single column or a single row, the function performs a 1D transform.</li>
<li>If none of the above is true, the function performs a 2D transform.</li>
</ul>
<dl class="section note"><dt>Note</dt><dd>Currently dct supports even-size arrays (2, 4, 6 ...). For data analysis and approximation, you can pad the array when necessary. Also, the function performance depends very much, and not monotonically, on the array size (see getOptimalDFTSize ). In the current implementation DCT of a vector of size N is calculated via DFT of a vector of size N/2 . Thus, the optimal DCT size N1 &gt;= N can be calculated as: <div class="fragment"><div class="line"><span class="keywordtype">size_t</span> getOptimalDCTSize(<span class="keywordtype">size_t</span> N) { <span class="keywordflow">return</span> 2*<a class="code" href="../../d2/de8/group__core__array.html#ga6577a2e59968936ae02eb2edde5de299">getOptimalDFTSize</a>((N+1)/2); }</div><div class="line">N1 = getOptimalDCTSize(N);</div></div><!-- fragment --> </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input floating-point array. </td></tr>
    <tr><td class="paramname">dst</td><td>output array of the same size and type as src . </td></tr>
    <tr><td class="paramname">flags</td><td>transformation flags as a combination of <a class="el" href="../../d2/de8/group__core__array.html#gaf4dde112b483b38175621befedda1f1c">cv::DftFlags</a> (DCT_*) </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d2/de8/group__core__array.html#gadd6cf9baf2b8b704a11b5f04aaf4f39d" title="Performs a forward or inverse Discrete Fourier transform of a 1D or 2D floating-point array...">dft</a> , <a class="el" href="../../d2/de8/group__core__array.html#ga6577a2e59968936ae02eb2edde5de299" title="Returns the optimal DFT size for a given vector size. ">getOptimalDFTSize</a> , <a class="el" href="../../d2/de8/group__core__array.html#ga77b168d84e564c50228b69730a227ef2" title="Calculates the inverse Discrete Cosine Transform of a 1D or 2D array. ">idct</a> </dd></dl>
</div>
</div>
<a id="gaf802bd9ca3e07b8b6170645ef0611d0c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf802bd9ca3e07b8b6170645ef0611d0c">◆ </a></span>determinant()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double cv::determinant </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>mtx</em></td><td>)</td>
          <td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.determinant(</td><td class="paramname">mtx</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Returns the determinant of a square floating-point matrix. </p>
<p>The function <a class="el" href="../../dc/d84/group__core__basic.html#ga06b8ec936c3cbc9502d76c7818053b41">cv::determinant</a> calculates and returns the determinant of the specified matrix. For small matrices ( mtx.cols=mtx.rows&lt;=3 ), the direct method is used. For larger matrices, the function uses LU factorization with partial pivoting.</p>
<p>For symmetric positively-determined matrices, it is also possible to use eigen decomposition to calculate the determinant. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">mtx</td><td>input matrix that must have CV_32FC1 or CV_64FC1 type and square size. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../dc/d84/group__core__basic.html#ga36ad18631177b097a38198c4e83c6e2b">trace</a>, <a class="el" href="../../d2/de8/group__core__array.html#gad278044679d4ecf20f7622cc151aaaa2" title="Finds the inverse or pseudo-inverse of a matrix. ">invert</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga12b43690dbd31fed96f213eefead2373" title="Solves one or more linear systems or least-squares problems. ">solve</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga9fa0d58657f60eaa6c71f6fbb40456e3" title="Calculates eigenvalues and eigenvectors of a symmetric matrix. ">eigen</a>, <a class="el" href="../../d1/d10/classcv_1_1MatExpr.html#MatrixExpressions">MatrixExpressions</a> </dd></dl>
</div>
</div>
<a id="gadd6cf9baf2b8b704a11b5f04aaf4f39d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gadd6cf9baf2b8b704a11b5f04aaf4f39d">◆ </a></span>dft()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::dft </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>flags</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>nonzeroRows</em> = <code>0</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.dft(</td><td class="paramname">src[, dst[, flags[, nonzeroRows]]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Performs a forward or inverse Discrete Fourier transform of a 1D or 2D floating-point array. </p>
<p>The function <a class="el" href="../../d2/de8/group__core__array.html#gadd6cf9baf2b8b704a11b5f04aaf4f39d" title="Performs a forward or inverse Discrete Fourier transform of a 1D or 2D floating-point array...">cv::dft</a> performs one of the following:</p><ul>
<li>Forward the Fourier transform of a 1D vector of N elements: <p class="formulaDsp">
\[Y = F^{(N)} \cdot X,\]
</p>
 where \(F^{(N)}_{jk}=\exp(-2\pi i j k/N)\) and \(i=\sqrt{-1}\)</li>
<li>Inverse the Fourier transform of a 1D vector of N elements: <p class="formulaDsp">
\[\begin{array}{l} X'= \left (F^{(N)} \right )^{-1} \cdot Y = \left (F^{(N)} \right )^* \cdot y \\ X = (1/N) \cdot X, \end{array}\]
</p>
 where \(F^*=\left(\textrm{Re}(F^{(N)})-\textrm{Im}(F^{(N)})\right)^T\)</li>
<li>Forward the 2D Fourier transform of a M x N matrix: <p class="formulaDsp">
\[Y = F^{(M)} \cdot X \cdot F^{(N)}\]
</p>
</li>
<li>Inverse the 2D Fourier transform of a M x N matrix: <p class="formulaDsp">
\[\begin{array}{l} X'= \left (F^{(M)} \right )^* \cdot Y \cdot \left (F^{(N)} \right )^* \\ X = \frac{1}{M \cdot N} \cdot X' \end{array}\]
</p>
</li>
</ul>
<p>In case of real (single-channel) data, the output spectrum of the forward Fourier transform or input spectrum of the inverse Fourier transform can be represented in a packed format called <em>CCS</em> (complex-conjugate-symmetrical). It was borrowed from IPL (Intel* Image Processing Library). Here is how 2D <em>CCS</em> spectrum looks: </p><p class="formulaDsp">
\[\begin{bmatrix} Re Y_{0,0} &amp; Re Y_{0,1} &amp; Im Y_{0,1} &amp; Re Y_{0,2} &amp; Im Y_{0,2} &amp; \cdots &amp; Re Y_{0,N/2-1} &amp; Im Y_{0,N/2-1} &amp; Re Y_{0,N/2} \\ Re Y_{1,0} &amp; Re Y_{1,1} &amp; Im Y_{1,1} &amp; Re Y_{1,2} &amp; Im Y_{1,2} &amp; \cdots &amp; Re Y_{1,N/2-1} &amp; Im Y_{1,N/2-1} &amp; Re Y_{1,N/2} \\ Im Y_{1,0} &amp; Re Y_{2,1} &amp; Im Y_{2,1} &amp; Re Y_{2,2} &amp; Im Y_{2,2} &amp; \cdots &amp; Re Y_{2,N/2-1} &amp; Im Y_{2,N/2-1} &amp; Im Y_{1,N/2} \\ \hdotsfor{9} \\ Re Y_{M/2-1,0} &amp; Re Y_{M-3,1} &amp; Im Y_{M-3,1} &amp; \hdotsfor{3} &amp; Re Y_{M-3,N/2-1} &amp; Im Y_{M-3,N/2-1}&amp; Re Y_{M/2-1,N/2} \\ Im Y_{M/2-1,0} &amp; Re Y_{M-2,1} &amp; Im Y_{M-2,1} &amp; \hdotsfor{3} &amp; Re Y_{M-2,N/2-1} &amp; Im Y_{M-2,N/2-1}&amp; Im Y_{M/2-1,N/2} \\ Re Y_{M/2,0} &amp; Re Y_{M-1,1} &amp; Im Y_{M-1,1} &amp; \hdotsfor{3} &amp; Re Y_{M-1,N/2-1} &amp; Im Y_{M-1,N/2-1}&amp; Re Y_{M/2,N/2} \end{bmatrix}\]
</p>
<p>In case of 1D transform of a real vector, the output looks like the first row of the matrix above.</p>
<p>So, the function chooses an operation mode depending on the flags and size of the input array:</p><ul>
<li>If <a class="el" href="../../d2/de8/group__core__array.html#ggaf4dde112b483b38175621befedda1f1ca1744dc1cf1249944bc841e78c1565b7f">DFT_ROWS</a> is set or the input array has a single row or single column, the function performs a 1D forward or inverse transform of each row of a matrix when <a class="el" href="../../d2/de8/group__core__array.html#ggaf4dde112b483b38175621befedda1f1ca1744dc1cf1249944bc841e78c1565b7f">DFT_ROWS</a> is set. Otherwise, it performs a 2D transform.</li>
<li>If the input array is real and <a class="el" href="../../d2/de8/group__core__array.html#ggaf4dde112b483b38175621befedda1f1ca4e01d7e91cae1dbb68a26767d7b636be">DFT_INVERSE</a> is not set, the function performs a forward 1D or 2D transform:<ul>
<li>When <a class="el" href="../../d2/de8/group__core__array.html#ggaf4dde112b483b38175621befedda1f1ca07b45079b38d60e7837dfb666a55299b">DFT_COMPLEX_OUTPUT</a> is set, the output is a complex matrix of the same size as input.</li>
<li>When <a class="el" href="../../d2/de8/group__core__array.html#ggaf4dde112b483b38175621befedda1f1ca07b45079b38d60e7837dfb666a55299b">DFT_COMPLEX_OUTPUT</a> is not set, the output is a real matrix of the same size as input. In case of 2D transform, it uses the packed format as shown above. In case of a single 1D transform, it looks like the first row of the matrix above. In case of multiple 1D transforms (when using the <a class="el" href="../../d2/de8/group__core__array.html#ggaf4dde112b483b38175621befedda1f1ca1744dc1cf1249944bc841e78c1565b7f">DFT_ROWS</a> flag), each row of the output matrix looks like the first row of the matrix above.</li>
</ul>
</li>
<li>If the input array is complex and either <a class="el" href="../../d2/de8/group__core__array.html#ggaf4dde112b483b38175621befedda1f1ca4e01d7e91cae1dbb68a26767d7b636be">DFT_INVERSE</a> or <a class="el" href="../../d2/de8/group__core__array.html#ggaf4dde112b483b38175621befedda1f1ca28347c7846e5eaed83e019cd003e8e03">DFT_REAL_OUTPUT</a> are not set, the output is a complex array of the same size as input. The function performs a forward or inverse 1D or 2D transform of the whole input array or each row of the input array independently, depending on the flags DFT_INVERSE and DFT_ROWS.</li>
<li>When <a class="el" href="../../d2/de8/group__core__array.html#ggaf4dde112b483b38175621befedda1f1ca4e01d7e91cae1dbb68a26767d7b636be">DFT_INVERSE</a> is set and the input array is real, or it is complex but <a class="el" href="../../d2/de8/group__core__array.html#ggaf4dde112b483b38175621befedda1f1ca28347c7846e5eaed83e019cd003e8e03">DFT_REAL_OUTPUT</a> is set, the output is a real array of the same size as input. The function performs a 1D or 2D inverse transformation of the whole input array or each individual row, depending on the flags <a class="el" href="../../d2/de8/group__core__array.html#ggaf4dde112b483b38175621befedda1f1ca4e01d7e91cae1dbb68a26767d7b636be">DFT_INVERSE</a> and <a class="el" href="../../d2/de8/group__core__array.html#ggaf4dde112b483b38175621befedda1f1ca1744dc1cf1249944bc841e78c1565b7f">DFT_ROWS</a>.</li>
</ul>
<p>If <a class="el" href="../../d2/de8/group__core__array.html#ggaf4dde112b483b38175621befedda1f1ca74746fb171aa4bfc08ace28d73f52375">DFT_SCALE</a> is set, the scaling is done after the transformation.</p>
<p>Unlike dct , the function supports arrays of arbitrary size. But only those arrays are processed efficiently, whose sizes can be factorized in a product of small prime numbers (2, 3, and 5 in the current implementation). Such an efficient DFT size can be calculated using the getOptimalDFTSize method.</p>
<p>The sample below illustrates how to calculate a DFT-based convolution of two 2D real arrays: </p><div class="fragment"><div class="line"><span class="keywordtype">void</span> convolveDFT(<a class="code" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> A, <a class="code" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> B, <a class="code" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> C)</div><div class="line">{</div><div class="line">    <span class="comment">// reallocate the output array if needed</span></div><div class="line">    C.create(<a class="code" href="../../d2/d75/namespacecv.html#af6df65b17fb11af6d34634b6dfa44683">abs</a>(A.rows - B.rows)+1, <a class="code" href="../../d2/d75/namespacecv.html#af6df65b17fb11af6d34634b6dfa44683">abs</a>(A.cols - B.cols)+1, A.type());</div><div class="line">    <a class="code" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a> dftSize;</div><div class="line">    <span class="comment">// calculate the size of DFT transform</span></div><div class="line">    dftSize.<a class="code" href="../../d6/d50/classcv_1_1Size__.html#abfe0367b32c407ddccf5ddf92667c73d">width</a> = <a class="code" href="../../d2/de8/group__core__array.html#ga6577a2e59968936ae02eb2edde5de299">getOptimalDFTSize</a>(A.cols + B.cols - 1);</div><div class="line">    dftSize.height = <a class="code" href="../../d2/de8/group__core__array.html#ga6577a2e59968936ae02eb2edde5de299">getOptimalDFTSize</a>(A.rows + B.rows - 1);</div><div class="line"></div><div class="line">    <span class="comment">// allocate temporary buffers and initialize them with 0's</span></div><div class="line">    Mat tempA(dftSize, A.type(), <a class="code" href="../../d1/da0/classcv_1_1Scalar__.html#ac1509a4b8454fe7fe29db069e13a2e6f">Scalar::all</a>(0));</div><div class="line">    Mat tempB(dftSize, B.type(), <a class="code" href="../../d1/da0/classcv_1_1Scalar__.html#ac1509a4b8454fe7fe29db069e13a2e6f">Scalar::all</a>(0));</div><div class="line"></div><div class="line">    <span class="comment">// copy A and B to the top-left corners of tempA and tempB, respectively</span></div><div class="line">    Mat roiA(tempA, <a class="code" href="../../dc/d84/group__core__basic.html#ga11d95de507098e90bad732b9345402e8">Rect</a>(0,0,A.cols,A.rows));</div><div class="line">    A.copyTo(roiA);</div><div class="line">    Mat roiB(tempB, <a class="code" href="../../dc/d84/group__core__basic.html#ga11d95de507098e90bad732b9345402e8">Rect</a>(0,0,B.cols,B.rows));</div><div class="line">    B.copyTo(roiB);</div><div class="line"></div><div class="line">    <span class="comment">// now transform the padded A &amp; B in-place;</span></div><div class="line">    <span class="comment">// use "nonzeroRows" hint for faster processing</span></div><div class="line">    <a class="code" href="../../d2/de8/group__core__array.html#gadd6cf9baf2b8b704a11b5f04aaf4f39d">dft</a>(tempA, tempA, 0, A.rows);</div><div class="line">    <a class="code" href="../../d2/de8/group__core__array.html#gadd6cf9baf2b8b704a11b5f04aaf4f39d">dft</a>(tempB, tempB, 0, B.rows);</div><div class="line"></div><div class="line">    <span class="comment">// multiply the spectrums;</span></div><div class="line">    <span class="comment">// the function handles packed spectrum representations well</span></div><div class="line">    <a class="code" href="../../d2/de8/group__core__array.html#ga3ab38646463c59bf0ce962a9d51db64f">mulSpectrums</a>(tempA, tempB, tempA);</div><div class="line"></div><div class="line">    <span class="comment">// transform the product back from the frequency domain.</span></div><div class="line">    <span class="comment">// Even though all the result rows will be non-zero,</span></div><div class="line">    <span class="comment">// you need only the first C.rows of them, and thus you</span></div><div class="line">    <span class="comment">// pass nonzeroRows == C.rows</span></div><div class="line">    <a class="code" href="../../d2/de8/group__core__array.html#gadd6cf9baf2b8b704a11b5f04aaf4f39d">dft</a>(tempA, tempA, <a class="code" href="../../d2/de8/group__core__array.html#ggaf4dde112b483b38175621befedda1f1ca4e01d7e91cae1dbb68a26767d7b636be">DFT_INVERSE</a> + <a class="code" href="../../d2/de8/group__core__array.html#ggaf4dde112b483b38175621befedda1f1ca74746fb171aa4bfc08ace28d73f52375">DFT_SCALE</a>, C.rows);</div><div class="line"></div><div class="line">    <span class="comment">// now copy the result back to C.</span></div><div class="line">    tempA(<a class="code" href="../../dc/d84/group__core__basic.html#ga11d95de507098e90bad732b9345402e8">Rect</a>(0, 0, C.cols, C.rows)).copyTo(C);</div><div class="line"></div><div class="line">    <span class="comment">// all the temporary buffers will be deallocated automatically</span></div><div class="line">}</div></div><!-- fragment --><p> To optimize this sample, consider the following approaches:</p><ul>
<li>Since nonzeroRows != 0 is passed to the forward transform calls and since A and B are copied to the top-left corners of tempA and tempB, respectively, it is not necessary to clear the whole tempA and tempB. It is only necessary to clear the tempA.cols - A.cols ( tempB.cols - B.cols) rightmost columns of the matrices.</li>
<li>This DFT-based convolution does not have to be applied to the whole big arrays, especially if B is significantly smaller than A or vice versa. Instead, you can calculate convolution by parts. To do this, you need to split the output array C into multiple tiles. For each tile, estimate which parts of A and B are required to calculate convolution in this tile. If the tiles in C are too small, the speed will decrease a lot because of repeated work. In the ultimate case, when each tile in C is a single pixel, the algorithm becomes equivalent to the naive convolution algorithm. If the tiles are too big, the temporary arrays tempA and tempB become too big and there is also a slowdown because of bad cache locality. So, there is an optimal tile size somewhere in the middle.</li>
<li>If different tiles in C can be calculated in parallel and, thus, the convolution is done by parts, the loop can be threaded.</li>
</ul>
<p>All of the above improvements have been implemented in <a class="el" href="../../df/dfb/group__imgproc__object.html#ga586ebfb0a7fb604b35a23d85391329be" title="Compares a template against overlapped image regions. ">matchTemplate</a> and <a class="el" href="../../d4/d86/group__imgproc__filter.html#ga27c049795ce870216ddfb366086b5a04" title="Convolves an image with the kernel. ">filter2D</a> . Therefore, by using them, you can get the performance even better than with the above theoretically optimal implementation. Though, those two functions actually calculate cross-correlation, not convolution, so you need to "flip" the second convolution operand B vertically and horizontally using flip . </p><dl class="section note"><dt>Note</dt><dd><ul>
<li>An example using the discrete fourier transform can be found at opencv_source_code/samples/cpp/dft.cpp</li>
<li>(Python) An example using the dft functionality to perform Wiener deconvolution can be found at opencv_source/samples/python/deconvolution.py</li>
<li>(Python) An example rearranging the quadrants of a Fourier image can be found at opencv_source/samples/python/dft.py </li>
</ul>
</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input array that could be real or complex. </td></tr>
    <tr><td class="paramname">dst</td><td>output array whose size and type depends on the flags . </td></tr>
    <tr><td class="paramname">flags</td><td>transformation flags, representing a combination of the <a class="el" href="../../d2/de8/group__core__array.html#gaf4dde112b483b38175621befedda1f1c">DftFlags</a> </td></tr>
    <tr><td class="paramname">nonzeroRows</td><td>when the parameter is not zero, the function assumes that only the first nonzeroRows rows of the input array (<a class="el" href="../../d2/de8/group__core__array.html#ggaf4dde112b483b38175621befedda1f1ca4e01d7e91cae1dbb68a26767d7b636be">DFT_INVERSE</a> is not set) or only the first nonzeroRows of the output array (<a class="el" href="../../d2/de8/group__core__array.html#ggaf4dde112b483b38175621befedda1f1ca4e01d7e91cae1dbb68a26767d7b636be">DFT_INVERSE</a> is set) contain non-zeros, thus, the function can handle the rest of the rows more efficiently and save some time; this technique is very useful for calculating array cross-correlation or convolution using DFT. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d2/de8/group__core__array.html#ga85aad4d668c01fbd64825f589e3696d4" title="Performs a forward or inverse discrete Cosine transform of 1D or 2D array. ">dct</a> , <a class="el" href="../../d2/de8/group__core__array.html#ga6577a2e59968936ae02eb2edde5de299" title="Returns the optimal DFT size for a given vector size. ">getOptimalDFTSize</a> , <a class="el" href="../../d2/de8/group__core__array.html#ga3ab38646463c59bf0ce962a9d51db64f" title="Performs the per-element multiplication of two Fourier spectrums. ">mulSpectrums</a>, <a class="el" href="../../d4/d86/group__imgproc__filter.html#ga27c049795ce870216ddfb366086b5a04" title="Convolves an image with the kernel. ">filter2D</a> , <a class="el" href="../../df/dfb/group__imgproc__object.html#ga586ebfb0a7fb604b35a23d85391329be" title="Compares a template against overlapped image regions. ">matchTemplate</a> , <a class="el" href="../../d2/de8/group__core__array.html#gaca7be533e3dac7feb70fc60635adf441" title="Flips a 2D array around vertical, horizontal, or both axes. ">flip</a> , <a class="el" href="../../d2/de8/group__core__array.html#gac5f92f48ec32cacf5275969c33ee837d" title="Calculates the magnitude and angle of 2D vectors. ">cartToPolar</a> , <a class="el" href="../../d2/de8/group__core__array.html#ga6d3b097586bca4409873d64a90fe64c3" title="Calculates the magnitude of 2D vectors. ">magnitude</a> , <a class="el" href="../../d2/de8/group__core__array.html#ga9db9ca9b4d81c3bde5677b8f64dc0137" title="Calculates the rotation angle of 2D vectors. ">phase</a> </dd></dl>
</div>
</div>
<a id="ga6db555d30115642fedae0cda05604874"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6db555d30115642fedae0cda05604874">◆ </a></span>divide() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::divide </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>scale</em> = <code>1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>dtype</em> = <code>-1</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.divide(</td><td class="paramname">src1, src2[, dst[, scale[, dtype]]]</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.divide(</td><td class="paramname">scale, src2[, dst[, dtype]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Performs per-element division of two arrays or a scalar by an array. </p>
<p>The function <a class="el" href="../../d2/de8/group__core__array.html#ga6db555d30115642fedae0cda05604874" title="Performs per-element division of two arrays or a scalar by an array. ">cv::divide</a> divides one array by another: </p><p class="formulaDsp">
\[\texttt{dst(I) = saturate(src1(I)*scale/src2(I))}\]
</p>
<p> or a scalar by an array when there is no src1 : </p><p class="formulaDsp">
\[\texttt{dst(I) = saturate(scale/src2(I))}\]
</p>
<p>Different channels of multi-channel arrays are processed independently.</p>
<p>For integer types when src2(I) is zero, dst(I) will also be zero.</p>
<dl class="section note"><dt>Note</dt><dd>In case of floating point data there is no special defined behavior for zero src2(I) values. Regular floating-point division is used. Expect correct IEEE-754 behaviour for floating-point data (with NaN, Inf result values).</dd>
<dd>
Saturation is not applied when the output array has the depth CV_32S. You may even get result of an incorrect sign in the case of overflow. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src1</td><td>first input array. </td></tr>
    <tr><td class="paramname">src2</td><td>second input array of the same size and type as src1. </td></tr>
    <tr><td class="paramname">scale</td><td>scalar factor. </td></tr>
    <tr><td class="paramname">dst</td><td>output array of the same size and type as src2. </td></tr>
    <tr><td class="paramname">dtype</td><td>optional depth of the output array; if -1, dst will have depth <a class="el" href="../../d0/daf/group__projection.html#ga8b5e5413af41caf3f2a0bbf4cdf517a8" title="Returns the depth of a point transformed by a rigid transform. ">src2.depth()</a>, but in case of an array-by-array division, you can only pass -1 when <a class="el" href="../../d0/daf/group__projection.html#ga8b5e5413af41caf3f2a0bbf4cdf517a8" title="Returns the depth of a point transformed by a rigid transform. ">src1.depth()</a>==<a class="el" href="../../d0/daf/group__projection.html#ga8b5e5413af41caf3f2a0bbf4cdf517a8" title="Returns the depth of a point transformed by a rigid transform. ">src2.depth()</a>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d2/de8/group__core__array.html#ga979d898a58d7f61c53003e162e7ad89f" title="Calculates the per-element scaled product of two arrays. ">multiply</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga10ac1bfb180e2cfda1701d06c24fdbd6" title="Calculates the per-element sum of two arrays or an array and a scalar. ">add</a>, <a class="el" href="../../d2/de8/group__core__array.html#gaa0f00d98b4b5edeaeb7b8333b2de353b" title="Calculates the per-element difference between two arrays or array and a scalar. ">subtract</a> </dd></dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../d9/d8d/samples_2dnn_2classification_8cpp-example.html#a26">samples/dnn/classification.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="ga1f96b569cac4c286642b34eff098138e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga1f96b569cac4c286642b34eff098138e">◆ </a></span>divide() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::divide </td>
          <td>(</td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>scale</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>dtype</em> = <code>-1</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.divide(</td><td class="paramname">src1, src2[, dst[, scale[, dtype]]]</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.divide(</td><td class="paramname">scale, src2[, dst[, dtype]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p>
</div>
</div>
<a id="ga9fa0d58657f60eaa6c71f6fbb40456e3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9fa0d58657f60eaa6c71f6fbb40456e3">◆ </a></span>eigen()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool cv::eigen </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>eigenvalues</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>eigenvectors</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>()</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval, eigenvalues, eigenvectors</td><td>=</td><td>cv.eigen(</td><td class="paramname">src[, eigenvalues[, eigenvectors]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Calculates eigenvalues and eigenvectors of a symmetric matrix. </p>
<p>The function <a class="el" href="../../d2/de8/group__core__array.html#ga9fa0d58657f60eaa6c71f6fbb40456e3" title="Calculates eigenvalues and eigenvectors of a symmetric matrix. ">cv::eigen</a> calculates just eigenvalues, or eigenvalues and eigenvectors of the symmetric matrix src: </p><div class="fragment"><div class="line">src*eigenvectors.<a class="code" href="../../d3/d63/classcv_1_1Mat.html#a4b22e1c23af7a7f2eef8fa478cfa7434">row</a>(i).<a class="code" href="../../d3/d63/classcv_1_1Mat.html#aaa428c60ccb6d8ea5de18f63dfac8e11">t</a>() = eigenvalues.<a class="code" href="../../d3/d63/classcv_1_1Mat.html#aa5d20fc86d41d59e4d71ae93daee9726">at</a>&lt;srcType&gt;(i)*eigenvectors.row(i).t()</div></div><!-- fragment --><dl class="section note"><dt>Note</dt><dd>Use <a class="el" href="../../d2/de8/group__core__array.html#gaf51987e03cac8d171fbd2b327cf966f6" title="Calculates eigenvalues and eigenvectors of a non-symmetric matrix (real eigenvalues only)...">cv::eigenNonSymmetric</a> for calculation of real eigenvalues and eigenvectors of non-symmetric matrix.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input matrix that must have CV_32FC1 or CV_64FC1 type, square size and be symmetrical (src ^T^ == src). </td></tr>
    <tr><td class="paramname">eigenvalues</td><td>output vector of eigenvalues of the same type as src; the eigenvalues are stored in the descending order. </td></tr>
    <tr><td class="paramname">eigenvectors</td><td>output matrix of eigenvectors; it has the same size and type as src; the eigenvectors are stored as subsequent matrix rows, in the same order as the corresponding eigenvalues. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d2/de8/group__core__array.html#gaf51987e03cac8d171fbd2b327cf966f6" title="Calculates eigenvalues and eigenvectors of a non-symmetric matrix (real eigenvalues only)...">eigenNonSymmetric</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga6847337c0c55769e115a70e0f011b5ca" title="Copies the lower or the upper half of a square matrix to its another half. ">completeSymm</a> , <a class="el" href="../../d3/d8d/classcv_1_1PCA.html" title="Principal Component Analysis. ">PCA</a> </dd></dl>
</div>
</div>
<a id="gaf51987e03cac8d171fbd2b327cf966f6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf51987e03cac8d171fbd2b327cf966f6">◆ </a></span>eigenNonSymmetric()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::eigenNonSymmetric </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>eigenvalues</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>eigenvectors</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>eigenvalues, eigenvectors</td><td>=</td><td>cv.eigenNonSymmetric(</td><td class="paramname">src[, eigenvalues[, eigenvectors]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Calculates eigenvalues and eigenvectors of a non-symmetric matrix (real eigenvalues only). </p>
<dl class="section note"><dt>Note</dt><dd>Assumes real eigenvalues.</dd></dl>
<p>The function calculates eigenvalues and eigenvectors (optional) of the square matrix src: </p><div class="fragment"><div class="line">src*eigenvectors.<a class="code" href="../../d3/d63/classcv_1_1Mat.html#a4b22e1c23af7a7f2eef8fa478cfa7434">row</a>(i).<a class="code" href="../../d3/d63/classcv_1_1Mat.html#aaa428c60ccb6d8ea5de18f63dfac8e11">t</a>() = eigenvalues.<a class="code" href="../../d3/d63/classcv_1_1Mat.html#aa5d20fc86d41d59e4d71ae93daee9726">at</a>&lt;srcType&gt;(i)*eigenvectors.row(i).t()</div></div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input matrix (CV_32FC1 or CV_64FC1 type). </td></tr>
    <tr><td class="paramname">eigenvalues</td><td>output vector of eigenvalues (type is the same type as src). </td></tr>
    <tr><td class="paramname">eigenvectors</td><td>output matrix of eigenvectors (type is the same type as src). The eigenvectors are stored as subsequent matrix rows, in the same order as the corresponding eigenvalues. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d2/de8/group__core__array.html#ga9fa0d58657f60eaa6c71f6fbb40456e3" title="Calculates eigenvalues and eigenvectors of a symmetric matrix. ">eigen</a> </dd></dl>
</div>
</div>
<a id="ga3e10108e2162c338f1b848af619f39e5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga3e10108e2162c338f1b848af619f39e5">◆ </a></span>exp()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::exp </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.exp(</td><td class="paramname">src[, dst]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Calculates the exponent of every array element. </p>
<p>The function <a class="el" href="../../d0/de1/group__core.html#ga96ff82d32417d677722a7e786425c98e">cv::exp</a> calculates the exponent of every element of the input array: </p><p class="formulaDsp">
\[\texttt{dst} [I] = e^{ src(I) }\]
</p>
<p>The maximum relative error is about 7e-6 for single-precision input and less than 1e-10 for double-precision input. Currently, the function converts denormalized values to zeros on output. Special values (NaN, Inf) are not handled. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input array. </td></tr>
    <tr><td class="paramname">dst</td><td>output array of the same size and type as src. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d0/de1/group__core.html#ga4eba02a849f926ee1764acde47108753">log</a> , <a class="el" href="../../d2/de8/group__core__array.html#gac5f92f48ec32cacf5275969c33ee837d" title="Calculates the magnitude and angle of 2D vectors. ">cartToPolar</a> , <a class="el" href="../../d2/de8/group__core__array.html#ga581ff9d44201de2dd1b40a50db93d665" title="Calculates x and y coordinates of 2D vectors from their magnitude and angle. ">polarToCart</a> , <a class="el" href="../../d2/de8/group__core__array.html#ga9db9ca9b4d81c3bde5677b8f64dc0137" title="Calculates the rotation angle of 2D vectors. ">phase</a> , <a class="el" href="../../d7/dcc/group__core__utils__softfloat.html#ga8bc36646a43b82baa15f151a973fb0c5" title="Raising to the power. ">pow</a> , <a class="el" href="../../d0/de1/group__core.html#ga9070b6a3f093dd952d973819b06f4906">sqrt</a> , <a class="el" href="../../d2/de8/group__core__array.html#ga6d3b097586bca4409873d64a90fe64c3" title="Calculates the magnitude of 2D vectors. ">magnitude</a> </dd></dl>
</div>
</div>
<a id="gacc6158574aa1f0281878c955bcf35642"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gacc6158574aa1f0281878c955bcf35642">◆ </a></span>extractChannel()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::extractChannel </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>coi</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.extractChannel(</td><td class="paramname">src, coi[, dst]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Extracts a single channel from src (coi is 0-based index) </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input array </td></tr>
    <tr><td class="paramname">dst</td><td>output array </td></tr>
    <tr><td class="paramname">coi</td><td>index of channel to extract </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d2/de8/group__core__array.html#ga51d768c270a1cdd3497255017c4504be" title="Copies specified channels from input arrays to the specified channels of output arrays. ">mixChannels</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga0547c7fed86152d7e9d0096029c8518a" title="Divides a multi-channel array into several single-channel arrays. ">split</a> </dd></dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../d6/d39/samples_2dnn_2colorization_8cpp-example.html#a16">samples/dnn/colorization.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="gaed7df59a3539b4cc0fe5c9c8d7586190"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaed7df59a3539b4cc0fe5c9c8d7586190">◆ </a></span>findNonZero()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::findNonZero </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>idx</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>idx</td><td>=</td><td>cv.findNonZero(</td><td class="paramname">src[, idx]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Returns the list of locations of non-zero pixels. </p>
<p>Given a binary matrix (likely returned from an operation such as <a class="el" href="../../d7/d1b/group__imgproc__misc.html#gae8a4a146d1ca78c626a53577199e9c57" title="Applies a fixed-level threshold to each array element. ">threshold()</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga303cfb72acf8cbb36d884650c09a3a97" title="Performs the per-element comparison of two arrays or an array and scalar value. ">compare()</a>, &gt;, ==, etc, return all of the non-zero indices as a <a class="el" href="../../d3/d63/classcv_1_1Mat.html" title="n-dimensional dense array class ">cv::Mat</a> or std::vector&lt;cv::Point&gt; (x,y) For example: </p><div class="fragment"><div class="line"><a class="code" href="../../d3/d63/classcv_1_1Mat.html">cv::Mat</a> binaryImage; <span class="comment">// input, binary image</span></div><div class="line"><a class="code" href="../../d3/d63/classcv_1_1Mat.html">cv::Mat</a> locations;   <span class="comment">// output, locations of non-zero pixels</span></div><div class="line"><a class="code" href="../../d2/de8/group__core__array.html#gaed7df59a3539b4cc0fe5c9c8d7586190">cv::findNonZero</a>(binaryImage, locations);</div><div class="line"></div><div class="line"><span class="comment">// access pixel coordinates</span></div><div class="line"><a class="code" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> pnt = locations.<a class="code" href="../../d3/d63/classcv_1_1Mat.html#aa5d20fc86d41d59e4d71ae93daee9726">at</a>&lt;<a class="code" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a>&gt;(i);</div></div><!-- fragment --><p> or </p><div class="fragment"><div class="line"><a class="code" href="../../d3/d63/classcv_1_1Mat.html">cv::Mat</a> binaryImage; <span class="comment">// input, binary image</span></div><div class="line">vector&lt;Point&gt; locations;   <span class="comment">// output, locations of non-zero pixels</span></div><div class="line"><a class="code" href="../../d2/de8/group__core__array.html#gaed7df59a3539b4cc0fe5c9c8d7586190">cv::findNonZero</a>(binaryImage, locations);</div><div class="line"></div><div class="line"><span class="comment">// access pixel coordinates</span></div><div class="line"><a class="code" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> pnt = locations[i];</div></div><!-- fragment --> <dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>single-channel array </td></tr>
    <tr><td class="paramname">idx</td><td>the output array, type of <a class="el" href="../../d3/d63/classcv_1_1Mat.html" title="n-dimensional dense array class ">cv::Mat</a> or std::vector&lt;Point&gt;, corresponding to non-zero indices in the input </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="gaca7be533e3dac7feb70fc60635adf441"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaca7be533e3dac7feb70fc60635adf441">◆ </a></span>flip()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::flip </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>flipCode</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.flip(</td><td class="paramname">src, flipCode[, dst]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Flips a 2D array around vertical, horizontal, or both axes. </p>
<p>The function <a class="el" href="../../d2/de8/group__core__array.html#gaca7be533e3dac7feb70fc60635adf441" title="Flips a 2D array around vertical, horizontal, or both axes. ">cv::flip</a> flips the array in one of three different ways (row and column indices are 0-based): </p><p class="formulaDsp">
\[\texttt{dst} _{ij} = \left\{ \begin{array}{l l} \texttt{src} _{\texttt{src.rows}-i-1,j} &amp; if\; \texttt{flipCode} = 0 \\ \texttt{src} _{i, \texttt{src.cols} -j-1} &amp; if\; \texttt{flipCode} &gt; 0 \\ \texttt{src} _{ \texttt{src.rows} -i-1, \texttt{src.cols} -j-1} &amp; if\; \texttt{flipCode} &lt; 0 \\ \end{array} \right.\]
</p>
<p> The example scenarios of using the function are the following: Vertical flipping of the image (flipCode == 0) to switch between top-left and bottom-left image origin. This is a typical operation in video processing on Microsoft Windows* OS. Horizontal flipping of the image with the subsequent horizontal shift and absolute difference calculation to check for a vertical-axis symmetry (flipCode &gt; 0). Simultaneous horizontal and vertical flipping of the image with the subsequent shift and absolute difference calculation to check for a central symmetry (flipCode &lt; 0). Reversing the order of point arrays (flipCode &gt; 0 or flipCode == 0). </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input array. </td></tr>
    <tr><td class="paramname">dst</td><td>output array of the same size and type as src. </td></tr>
    <tr><td class="paramname">flipCode</td><td>a flag to specify how to flip the array; 0 means flipping around the x-axis and positive value (for example, 1) means flipping around y-axis. Negative value (for example, -1) means flipping around both axes. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d2/de8/group__core__array.html#ga46630ed6c0ea6254a35f447289bd7404" title="Transposes a matrix. ">transpose</a> , <a class="el" href="../../d2/de8/group__core__array.html#ga496c3860f3ac44c40b48811333cfda2d" title="Fills the output array with repeated copies of the input array. ">repeat</a> , <a class="el" href="../../d2/de8/group__core__array.html#ga6847337c0c55769e115a70e0f011b5ca" title="Copies the lower or the upper half of a square matrix to its another half. ">completeSymm</a> </dd></dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../d4/d26/samples_2cpp_2facedetect_8cpp-example.html#a31">samples/cpp/facedetect.cpp</a>, and <a class="el" href="../../d0/df8/samples_2cpp_2train_HOG_8cpp-example.html#a36">samples/cpp/train_HOG.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="gacb6e64071dffe36434e1e7ee79e7cb35"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gacb6e64071dffe36434e1e7ee79e7cb35">◆ </a></span>gemm()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::gemm </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>alpha</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src3</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>beta</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>flags</em> = <code>0</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.gemm(</td><td class="paramname">src1, src2, alpha, src3, beta[, dst[, flags]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Performs generalized matrix multiplication. </p>
<p>The function <a class="el" href="../../d2/de8/group__core__array.html#gacb6e64071dffe36434e1e7ee79e7cb35" title="Performs generalized matrix multiplication. ">cv::gemm</a> performs generalized matrix multiplication similar to the gemm functions in BLAS level 3. For example, <code>gemm(src1, src2, alpha, src3, beta, dst, GEMM_1_T + GEMM_3_T)</code> corresponds to </p><p class="formulaDsp">
\[\texttt{dst} = \texttt{alpha} \cdot \texttt{src1} ^T \cdot \texttt{src2} + \texttt{beta} \cdot \texttt{src3} ^T\]
</p>
<p>In case of complex (two-channel) data, performed a complex matrix multiplication.</p>
<p>The function can be replaced with a matrix expression. For example, the above call can be replaced with: </p><div class="fragment"><div class="line">dst = alpha*src1.t()*src2 + beta*src3.t();</div></div><!-- fragment --> <dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src1</td><td>first multiplied input matrix that could be real(CV_32FC1, CV_64FC1) or complex(CV_32FC2, CV_64FC2). </td></tr>
    <tr><td class="paramname">src2</td><td>second multiplied input matrix of the same type as src1. </td></tr>
    <tr><td class="paramname">alpha</td><td>weight of the matrix product. </td></tr>
    <tr><td class="paramname">src3</td><td>third optional delta matrix added to the matrix product; it should have the same type as src1 and src2. </td></tr>
    <tr><td class="paramname">beta</td><td>weight of src3. </td></tr>
    <tr><td class="paramname">dst</td><td>output matrix; it has the proper size and the same type as input matrices. </td></tr>
    <tr><td class="paramname">flags</td><td>operation flags (<a class="el" href="../../d2/de8/group__core__array.html#ga66643400559695a653d08e2000809060" title="generalized matrix multiplication flags ">cv::GemmFlags</a>) </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d2/de8/group__core__array.html#gadc4e49f8f7a155044e3be1b9e3b270ab" title="Calculates the product of a matrix and its transposition. ">mulTransposed</a> , <a class="el" href="../../d2/de8/group__core__array.html#ga393164aa54bb9169ce0a8cc44e08ff22" title="Performs the matrix transformation of every array element. ">transform</a> </dd></dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../dd/d93/samples_2cpp_2image_alignment_8cpp-example.html#a12">samples/cpp/image_alignment.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="ga6577a2e59968936ae02eb2edde5de299"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6577a2e59968936ae02eb2edde5de299">◆ </a></span>getOptimalDFTSize()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int cv::getOptimalDFTSize </td>
          <td>(</td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>vecsize</em></td><td>)</td>
          <td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.getOptimalDFTSize(</td><td class="paramname">vecsize</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Returns the optimal DFT size for a given vector size. </p>
<p>DFT performance is not a monotonic function of a vector size. Therefore, when you calculate convolution of two arrays or perform the spectral analysis of an array, it usually makes sense to pad the input data with zeros to get a bit larger array that can be transformed much faster than the original one. Arrays whose size is a power-of-two (2, 4, 8, 16, 32, ...) are the fastest to process. Though, the arrays whose size is a product of 2's, 3's, and 5's (for example, 300 = 5*5*3*2*2) are also processed quite efficiently.</p>
<p>The function <a class="el" href="../../d2/de8/group__core__array.html#ga6577a2e59968936ae02eb2edde5de299" title="Returns the optimal DFT size for a given vector size. ">cv::getOptimalDFTSize</a> returns the minimum number N that is greater than or equal to vecsize so that the DFT of a vector of size N can be processed efficiently. In the current implementation N = 2 ^p^ * 3 ^q^ * 5 ^r^ for some integer p, q, r.</p>
<p>The function returns a negative number if vecsize is too large (very close to INT_MAX ).</p>
<p>While the function cannot be used directly to estimate the optimal vector size for DCT transform (since the current DCT implementation supports only even-size vectors), it can be easily processed as getOptimalDFTSize((vecsize+1)/2)*2. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">vecsize</td><td>vector size. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d2/de8/group__core__array.html#gadd6cf9baf2b8b704a11b5f04aaf4f39d" title="Performs a forward or inverse Discrete Fourier transform of a 1D or 2D floating-point array...">dft</a> , <a class="el" href="../../d2/de8/group__core__array.html#ga85aad4d668c01fbd64825f589e3696d4" title="Performs a forward or inverse discrete Cosine transform of 1D or 2D array. ">dct</a> , <a class="el" href="../../d2/de8/group__core__array.html#gaa708aa2d2e57a508f968eb0f69aa5ff1" title="Calculates the inverse Discrete Fourier Transform of a 1D or 2D array. ">idft</a> , <a class="el" href="../../d2/de8/group__core__array.html#ga77b168d84e564c50228b69730a227ef2" title="Calculates the inverse Discrete Cosine Transform of a 1D or 2D array. ">idct</a> , <a class="el" href="../../d2/de8/group__core__array.html#ga3ab38646463c59bf0ce962a9d51db64f" title="Performs the per-element multiplication of two Fourier spectrums. ">mulSpectrums</a> </dd></dl>
</div>
</div>
<a id="gaf9771c991763233866bf76b5b5d1776f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf9771c991763233866bf76b5b5d1776f">◆ </a></span>hconcat() <span class="overload">[1/3]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::hconcat </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> * </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t </td>
          <td class="paramname"><em>nsrc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.hconcat(</td><td class="paramname">src[, dst]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Applies horizontal concatenation to given matrices. </p>
<p>The function horizontally concatenates two or more <a class="el" href="../../d3/d63/classcv_1_1Mat.html" title="n-dimensional dense array class ">cv::Mat</a> matrices (with the same number of rows). </p><div class="fragment"><div class="line"><a class="code" href="../../d3/d63/classcv_1_1Mat.html">cv::Mat</a> matArray[] = { <a class="code" href="../../d3/d63/classcv_1_1Mat.html">cv::Mat</a>(4, 1, <a class="code" href="../../d1/d1b/group__core__hal__interface.html#ga81df635441b21f532fdace401e04f588">CV_8UC1</a>, <a class="code" href="../../d1/da0/classcv_1_1Scalar__.html">cv::Scalar</a>(1)),</div><div class="line">                       <a class="code" href="../../d3/d63/classcv_1_1Mat.html">cv::Mat</a>(4, 1, <a class="code" href="../../d1/d1b/group__core__hal__interface.html#ga81df635441b21f532fdace401e04f588">CV_8UC1</a>, <a class="code" href="../../d1/da0/classcv_1_1Scalar__.html">cv::Scalar</a>(2)),</div><div class="line">                       <a class="code" href="../../d3/d63/classcv_1_1Mat.html">cv::Mat</a>(4, 1, <a class="code" href="../../d1/d1b/group__core__hal__interface.html#ga81df635441b21f532fdace401e04f588">CV_8UC1</a>, <a class="code" href="../../d1/da0/classcv_1_1Scalar__.html">cv::Scalar</a>(3)),};</div><div class="line"></div><div class="line"><a class="code" href="../../d3/d63/classcv_1_1Mat.html">cv::Mat</a> out;</div><div class="line"><a class="code" href="../../d2/de8/group__core__array.html#gaf9771c991763233866bf76b5b5d1776f">cv::hconcat</a>( matArray, 3, out );</div><div class="line"><span class="comment">//out:</span></div><div class="line"><span class="comment">//[1, 2, 3;</span></div><div class="line"><span class="comment">// 1, 2, 3;</span></div><div class="line"><span class="comment">// 1, 2, 3;</span></div><div class="line"><span class="comment">// 1, 2, 3]</span></div></div><!-- fragment --> <dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input array or vector of matrices. all of the matrices must have the same number of rows and the same depth. </td></tr>
    <tr><td class="paramname">nsrc</td><td>number of matrices in src. </td></tr>
    <tr><td class="paramname">dst</td><td>output array. It has the same number of rows and depth as the src, and the sum of cols of the src. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d2/de8/group__core__array.html#ga744f53b69f6e4f12156cdde4e76aed27" title="Applies vertical concatenation to given matrices. ">cv::vconcat(const Mat*, size_t, OutputArray)</a>, </dd>
<dd>
<a class="el" href="../../d2/de8/group__core__array.html#ga558e169e15adcc46b8cdcc6cd215070f">cv::vconcat(InputArrayOfArrays, OutputArray)</a> and </dd>
<dd>
<a class="el" href="../../d2/de8/group__core__array.html#gaad07cede730cdde64b90e987aad179b8">cv::vconcat(InputArray, InputArray, OutputArray)</a> </dd></dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../d9/d47/samples_2cpp_2tutorial_code_2features2D_2Homography_2homography_from_camera_displacement_8cpp-example.html#a15">samples/cpp/tutorial_code/features2D/Homography/homography_from_camera_displacement.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="gaab5ceee39e0580f879df645a872c6bf7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaab5ceee39e0580f879df645a872c6bf7">◆ </a></span>hconcat() <span class="overload">[2/3]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::hconcat </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.hconcat(</td><td class="paramname">src[, dst]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p><div class="fragment"><div class="line"><a class="code" href="../../df/dfc/classcv_1_1Mat__.html">cv::Mat_&lt;float&gt;</a> A = (<a class="code" href="../../df/dfc/classcv_1_1Mat__.html">cv::Mat_&lt;float&gt;</a>(3, 2) &lt;&lt; 1, 4,</div><div class="line">                                              2, 5,</div><div class="line">                                              3, 6);</div><div class="line"><a class="code" href="../../df/dfc/classcv_1_1Mat__.html">cv::Mat_&lt;float&gt;</a> B = (<a class="code" href="../../df/dfc/classcv_1_1Mat__.html">cv::Mat_&lt;float&gt;</a>(3, 2) &lt;&lt; 7, 10,</div><div class="line">                                              8, 11,</div><div class="line">                                              9, 12);</div><div class="line"></div><div class="line"><a class="code" href="../../d3/d63/classcv_1_1Mat.html">cv::Mat</a> C;</div><div class="line"><a class="code" href="../../d2/de8/group__core__array.html#gaf9771c991763233866bf76b5b5d1776f">cv::hconcat</a>(A, B, C);</div><div class="line"><span class="comment">//C:</span></div><div class="line"><span class="comment">//[1, 4, 7, 10;</span></div><div class="line"><span class="comment">// 2, 5, 8, 11;</span></div><div class="line"><span class="comment">// 3, 6, 9, 12]</span></div></div><!-- fragment --> <dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src1</td><td>first input array to be considered for horizontal concatenation. </td></tr>
    <tr><td class="paramname">src2</td><td>second input array to be considered for horizontal concatenation. </td></tr>
    <tr><td class="paramname">dst</td><td>output array. It has the same number of rows and depth as the src1 and src2, and the sum of cols of the src1 and src2. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="ga4676b1376cdc4e528dab6bd9edc51c1a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga4676b1376cdc4e528dab6bd9edc51c1a">◆ </a></span>hconcat() <span class="overload">[3/3]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::hconcat </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga606feabe3b50ab6838f1ba89727aa07a">InputArrayOfArrays</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.hconcat(</td><td class="paramname">src[, dst]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p><div class="fragment"><div class="line">std::vector&lt;cv::Mat&gt; matrices = { <a class="code" href="../../d3/d63/classcv_1_1Mat.html">cv::Mat</a>(4, 1, <a class="code" href="../../d1/d1b/group__core__hal__interface.html#ga81df635441b21f532fdace401e04f588">CV_8UC1</a>, <a class="code" href="../../d1/da0/classcv_1_1Scalar__.html">cv::Scalar</a>(1)),</div><div class="line">                                  <a class="code" href="../../d3/d63/classcv_1_1Mat.html">cv::Mat</a>(4, 1, <a class="code" href="../../d1/d1b/group__core__hal__interface.html#ga81df635441b21f532fdace401e04f588">CV_8UC1</a>, <a class="code" href="../../d1/da0/classcv_1_1Scalar__.html">cv::Scalar</a>(2)),</div><div class="line">                                  <a class="code" href="../../d3/d63/classcv_1_1Mat.html">cv::Mat</a>(4, 1, <a class="code" href="../../d1/d1b/group__core__hal__interface.html#ga81df635441b21f532fdace401e04f588">CV_8UC1</a>, <a class="code" href="../../d1/da0/classcv_1_1Scalar__.html">cv::Scalar</a>(3)),};</div><div class="line"></div><div class="line"><a class="code" href="../../d3/d63/classcv_1_1Mat.html">cv::Mat</a> out;</div><div class="line"><a class="code" href="../../d2/de8/group__core__array.html#gaf9771c991763233866bf76b5b5d1776f">cv::hconcat</a>( matrices, out );</div><div class="line"><span class="comment">//out:</span></div><div class="line"><span class="comment">//[1, 2, 3;</span></div><div class="line"><span class="comment">// 1, 2, 3;</span></div><div class="line"><span class="comment">// 1, 2, 3;</span></div><div class="line"><span class="comment">// 1, 2, 3]</span></div></div><!-- fragment --> <dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input array or vector of matrices. all of the matrices must have the same number of rows and the same depth. </td></tr>
    <tr><td class="paramname">dst</td><td>output array. It has the same number of rows and depth as the src, and the sum of cols of the src. same depth. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="ga77b168d84e564c50228b69730a227ef2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga77b168d84e564c50228b69730a227ef2">◆ </a></span>idct()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::idct </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>flags</em> = <code>0</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.idct(</td><td class="paramname">src[, dst[, flags]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Calculates the inverse Discrete Cosine Transform of a 1D or 2D array. </p>
<p>idct(src, dst, flags) is equivalent to dct(src, dst, flags | DCT_INVERSE). </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input floating-point single-channel array. </td></tr>
    <tr><td class="paramname">dst</td><td>output array of the same size and type as src. </td></tr>
    <tr><td class="paramname">flags</td><td>operation flags. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d2/de8/group__core__array.html#ga85aad4d668c01fbd64825f589e3696d4" title="Performs a forward or inverse discrete Cosine transform of 1D or 2D array. ">dct</a>, <a class="el" href="../../d2/de8/group__core__array.html#gadd6cf9baf2b8b704a11b5f04aaf4f39d" title="Performs a forward or inverse Discrete Fourier transform of a 1D or 2D floating-point array...">dft</a>, <a class="el" href="../../d2/de8/group__core__array.html#gaa708aa2d2e57a508f968eb0f69aa5ff1" title="Calculates the inverse Discrete Fourier Transform of a 1D or 2D array. ">idft</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga6577a2e59968936ae02eb2edde5de299" title="Returns the optimal DFT size for a given vector size. ">getOptimalDFTSize</a> </dd></dl>
</div>
</div>
<a id="gaa708aa2d2e57a508f968eb0f69aa5ff1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa708aa2d2e57a508f968eb0f69aa5ff1">◆ </a></span>idft()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::idft </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>flags</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>nonzeroRows</em> = <code>0</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.idft(</td><td class="paramname">src[, dst[, flags[, nonzeroRows]]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Calculates the inverse Discrete Fourier Transform of a 1D or 2D array. </p>
<p>idft(src, dst, flags) is equivalent to dft(src, dst, flags | <a class="el" href="../../d2/de8/group__core__array.html#ggaf4dde112b483b38175621befedda1f1ca4e01d7e91cae1dbb68a26767d7b636be">DFT_INVERSE</a>) . </p><dl class="section note"><dt>Note</dt><dd>None of dft and idft scales the result by default. So, you should pass <a class="el" href="../../d2/de8/group__core__array.html#ggaf4dde112b483b38175621befedda1f1ca74746fb171aa4bfc08ace28d73f52375">DFT_SCALE</a> to one of dft or idft explicitly to make these transforms mutually inverse. </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d2/de8/group__core__array.html#gadd6cf9baf2b8b704a11b5f04aaf4f39d" title="Performs a forward or inverse Discrete Fourier transform of a 1D or 2D floating-point array...">dft</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga85aad4d668c01fbd64825f589e3696d4" title="Performs a forward or inverse discrete Cosine transform of 1D or 2D array. ">dct</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga77b168d84e564c50228b69730a227ef2" title="Calculates the inverse Discrete Cosine Transform of a 1D or 2D array. ">idct</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga3ab38646463c59bf0ce962a9d51db64f" title="Performs the per-element multiplication of two Fourier spectrums. ">mulSpectrums</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga6577a2e59968936ae02eb2edde5de299" title="Returns the optimal DFT size for a given vector size. ">getOptimalDFTSize</a> </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input floating-point real or complex array. </td></tr>
    <tr><td class="paramname">dst</td><td>output array whose size and type depend on the flags. </td></tr>
    <tr><td class="paramname">flags</td><td>operation flags (see dft and <a class="el" href="../../d2/de8/group__core__array.html#gaf4dde112b483b38175621befedda1f1c">DftFlags</a>). </td></tr>
    <tr><td class="paramname">nonzeroRows</td><td>number of dst rows to process; the rest of the rows have undefined content (see the convolution sample in dft description. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="ga48af0ab51e36436c5d04340e036ce981"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga48af0ab51e36436c5d04340e036ce981">◆ </a></span>inRange()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::inRange </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>lowerb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>upperb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.inRange(</td><td class="paramname">src, lowerb, upperb[, dst]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Checks if array elements lie between the elements of two other arrays. </p>
<p>The function checks the range as follows:</p><ul>
<li>For every element of a single-channel input array: <p class="formulaDsp">
\[\texttt{dst} (I)= \texttt{lowerb} (I)_0 \leq \texttt{src} (I)_0 \leq \texttt{upperb} (I)_0\]
</p>
</li>
<li>For two-channel arrays: <p class="formulaDsp">
\[\texttt{dst} (I)= \texttt{lowerb} (I)_0 \leq \texttt{src} (I)_0 \leq \texttt{upperb} (I)_0 \land \texttt{lowerb} (I)_1 \leq \texttt{src} (I)_1 \leq \texttt{upperb} (I)_1\]
</p>
</li>
<li>and so forth.</li>
</ul>
<p>That is, dst (I) is set to 255 (all 1 -bits) if src (I) is within the specified 1D, 2D, 3D, ... box and 0 otherwise.</p>
<p>When the lower and/or upper boundary parameters are scalars, the indexes (I) at lowerb and upperb in the above formulas should be omitted. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>first input array. </td></tr>
    <tr><td class="paramname">lowerb</td><td>inclusive lower boundary array or a scalar. </td></tr>
    <tr><td class="paramname">upperb</td><td>inclusive upper boundary array or a scalar. </td></tr>
    <tr><td class="paramname">dst</td><td>output array of the same size as src and CV_8U type. </td></tr>
  </table>
  </dd>
</dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../d6/d7f/samples_2cpp_2camshiftdemo_8cpp-example.html#a33">samples/cpp/camshiftdemo.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="ga1d4bd886d35b00ec0b764cb4ce6eb515"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga1d4bd886d35b00ec0b764cb4ce6eb515">◆ </a></span>insertChannel()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::insertChannel </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> </td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>coi</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.insertChannel(</td><td class="paramname">src, dst, coi</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Inserts a single channel to dst (coi is 0-based index) </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input array </td></tr>
    <tr><td class="paramname">dst</td><td>output array </td></tr>
    <tr><td class="paramname">coi</td><td>index of channel for insertion </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d2/de8/group__core__array.html#ga51d768c270a1cdd3497255017c4504be" title="Copies specified channels from input arrays to the specified channels of output arrays. ">mixChannels</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga7d7b4d6c6ee504b30a20b1680029c7b4" title="Creates one multi-channel array out of several single-channel ones. ">merge</a> </dd></dl>
</div>
</div>
<a id="gad278044679d4ecf20f7622cc151aaaa2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad278044679d4ecf20f7622cc151aaaa2">◆ </a></span>invert()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double cv::invert </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>flags</em> = <code><a class="el" href="../../d2/de8/group__core__array.html#ggaaf9ea5dcc392d5ae04eacb9920b9674ca247a3455cd64973152e17e26999dc024">DECOMP_LU</a></code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval, dst</td><td>=</td><td>cv.invert(</td><td class="paramname">src[, dst[, flags]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Finds the inverse or pseudo-inverse of a matrix. </p>
<p>The function <a class="el" href="../../d2/de8/group__core__array.html#gad278044679d4ecf20f7622cc151aaaa2" title="Finds the inverse or pseudo-inverse of a matrix. ">cv::invert</a> inverts the matrix src and stores the result in dst . When the matrix src is singular or non-square, the function calculates the pseudo-inverse matrix (the dst matrix) so that norm(src*dst - I) is minimal, where I is an identity matrix.</p>
<p>In case of the <a class="el" href="../../d2/de8/group__core__array.html#ggaaf9ea5dcc392d5ae04eacb9920b9674ca247a3455cd64973152e17e26999dc024">DECOMP_LU</a> method, the function returns non-zero value if the inverse has been successfully calculated and 0 if src is singular.</p>
<p>In case of the <a class="el" href="../../d2/de8/group__core__array.html#ggaaf9ea5dcc392d5ae04eacb9920b9674ca523b676c90c7a1d2841b1267ba9ba614">DECOMP_SVD</a> method, the function returns the inverse condition number of src (the ratio of the smallest singular value to the largest singular value) and 0 if src is singular. The <a class="el" href="../../df/df7/classcv_1_1SVD.html" title="Singular Value Decomposition. ">SVD</a> method calculates a pseudo-inverse matrix if src is singular.</p>
<p>Similarly to <a class="el" href="../../d2/de8/group__core__array.html#ggaaf9ea5dcc392d5ae04eacb9920b9674ca247a3455cd64973152e17e26999dc024">DECOMP_LU</a>, the method <a class="el" href="../../d2/de8/group__core__array.html#ggaaf9ea5dcc392d5ae04eacb9920b9674ca33cf860f98004310374a81d2c01715da">DECOMP_CHOLESKY</a> works only with non-singular square matrices that should also be symmetrical and positively defined. In this case, the function stores the inverted matrix in dst and returns non-zero. Otherwise, it returns 0.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input floating-point M x N matrix. </td></tr>
    <tr><td class="paramname">dst</td><td>output matrix of N x M size and the same type as src. </td></tr>
    <tr><td class="paramname">flags</td><td>inversion method (<a class="el" href="../../d2/de8/group__core__array.html#gaaf9ea5dcc392d5ae04eacb9920b9674c" title="matrix decomposition types ">cv::DecompTypes</a>) </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d2/de8/group__core__array.html#ga12b43690dbd31fed96f213eefead2373" title="Solves one or more linear systems or least-squares problems. ">solve</a>, <a class="el" href="../../df/df7/classcv_1_1SVD.html" title="Singular Value Decomposition. ">SVD</a> </dd></dl>
</div>
</div>
<a id="ga937ecdce4679a77168730830a955bea7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga937ecdce4679a77168730830a955bea7">◆ </a></span>log()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::log </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.log(</td><td class="paramname">src[, dst]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Calculates the natural logarithm of every array element. </p>
<p>The function <a class="el" href="../../d0/de1/group__core.html#ga4eba02a849f926ee1764acde47108753">cv::log</a> calculates the natural logarithm of every element of the input array: </p><p class="formulaDsp">
\[\texttt{dst} (I) = \log (\texttt{src}(I)) \]
</p>
<p>Output on zero, negative and special (NaN, Inf) values is undefined.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input array. </td></tr>
    <tr><td class="paramname">dst</td><td>output array of the same size and type as src . </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d0/de1/group__core.html#ga96ff82d32417d677722a7e786425c98e">exp</a>, <a class="el" href="../../d2/de8/group__core__array.html#gac5f92f48ec32cacf5275969c33ee837d" title="Calculates the magnitude and angle of 2D vectors. ">cartToPolar</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga581ff9d44201de2dd1b40a50db93d665" title="Calculates x and y coordinates of 2D vectors from their magnitude and angle. ">polarToCart</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga9db9ca9b4d81c3bde5677b8f64dc0137" title="Calculates the rotation angle of 2D vectors. ">phase</a>, <a class="el" href="../../d7/dcc/group__core__utils__softfloat.html#ga8bc36646a43b82baa15f151a973fb0c5" title="Raising to the power. ">pow</a>, <a class="el" href="../../d0/de1/group__core.html#ga9070b6a3f093dd952d973819b06f4906">sqrt</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga6d3b097586bca4409873d64a90fe64c3" title="Calculates the magnitude of 2D vectors. ">magnitude</a> </dd></dl>
</div>
</div>
<a id="gab55b8d062b7f5587720ede032d34156f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab55b8d062b7f5587720ede032d34156f">◆ </a></span>LUT()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::LUT </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>lut</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.LUT(</td><td class="paramname">src, lut[, dst]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Performs a look-up table transform of an array. </p>
<p>The function LUT fills the output array with values from the look-up table. Indices of the entries are taken from the input array. That is, the function processes each element of src as follows: </p><p class="formulaDsp">
\[\texttt{dst} (I) \leftarrow \texttt{lut(src(I) + d)}\]
</p>
<p> where </p><p class="formulaDsp">
\[d = \fork{0}{if \(\texttt{src}\) has depth \(\texttt{CV_8U}\)}{128}{if \(\texttt{src}\) has depth \(\texttt{CV_8S}\)}\]
</p>
 <dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input array of 8-bit elements. </td></tr>
    <tr><td class="paramname">lut</td><td>look-up table of 256 elements; in case of multi-channel input array, the table should either have a single channel (in this case the same table is used for all channels) or the same number of channels as in the input array. </td></tr>
    <tr><td class="paramname">dst</td><td>output array of the same size and number of channels as src, and the same depth as lut. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d2/de8/group__core__array.html#ga3460e9c9f37b563ab9dd550c4d8c4e7d" title="Scales, calculates absolute values, and converts the result to 8-bit. ">convertScaleAbs</a>, <a class="el" href="../../d3/d63/classcv_1_1Mat.html#adf88c60c5b4980e05bb556080916978b" title="Converts an array to another data type with optional scaling. ">Mat::convertTo</a> </dd></dl>
</div>
</div>
<a id="ga6d3b097586bca4409873d64a90fe64c3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6d3b097586bca4409873d64a90fe64c3">◆ </a></span>magnitude()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::magnitude </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>magnitude</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>magnitude</td><td>=</td><td>cv.magnitude(</td><td class="paramname">x, y[, magnitude]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Calculates the magnitude of 2D vectors. </p>
<p>The function <a class="el" href="../../d2/de8/group__core__array.html#ga6d3b097586bca4409873d64a90fe64c3" title="Calculates the magnitude of 2D vectors. ">cv::magnitude</a> calculates the magnitude of 2D vectors formed from the corresponding elements of x and y arrays: </p><p class="formulaDsp">
\[\texttt{dst} (I) = \sqrt{\texttt{x}(I)^2 + \texttt{y}(I)^2}\]
</p>
 <dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>floating-point array of x-coordinates of the vectors. </td></tr>
    <tr><td class="paramname">y</td><td>floating-point array of y-coordinates of the vectors; it must have the same size as x. </td></tr>
    <tr><td class="paramname">magnitude</td><td>output array of the same size and type as x. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d2/de8/group__core__array.html#gac5f92f48ec32cacf5275969c33ee837d" title="Calculates the magnitude and angle of 2D vectors. ">cartToPolar</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga581ff9d44201de2dd1b40a50db93d665" title="Calculates x and y coordinates of 2D vectors from their magnitude and angle. ">polarToCart</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga9db9ca9b4d81c3bde5677b8f64dc0137" title="Calculates the rotation angle of 2D vectors. ">phase</a>, <a class="el" href="../../d0/de1/group__core.html#ga9070b6a3f093dd952d973819b06f4906">sqrt</a> </dd></dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../d4/d35/samples_2cpp_2polar_transforms_8cpp-example.html#a27">samples/cpp/polar_transforms.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="ga4493aee129179459cbfc6064f051aa7d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga4493aee129179459cbfc6064f051aa7d">◆ </a></span>Mahalanobis()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double cv::Mahalanobis </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>v1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>v2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>icovar</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.Mahalanobis(</td><td class="paramname">v1, v2, icovar</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Calculates the Mahalanobis distance between two vectors. </p>
<p>The function <a class="el" href="../../d2/de8/group__core__array.html#ga4493aee129179459cbfc6064f051aa7d" title="Calculates the Mahalanobis distance between two vectors. ">cv::Mahalanobis</a> calculates and returns the weighted distance between two vectors: </p><p class="formulaDsp">
\[d( \texttt{vec1} , \texttt{vec2} )= \sqrt{\sum_{i,j}{\texttt{icovar(i,j)}\cdot(\texttt{vec1}(I)-\texttt{vec2}(I))\cdot(\texttt{vec1(j)}-\texttt{vec2(j)})} }\]
</p>
<p> The covariance matrix may be calculated using the <a class="el" href="../../d2/de8/group__core__array.html#gae6ffa9354633f984246945d52823165d" title="Calculates the covariance matrix of a set of vectors. ">calcCovarMatrix</a> function and then inverted using the invert function (preferably using the <a class="el" href="../../d2/de8/group__core__array.html#ggaaf9ea5dcc392d5ae04eacb9920b9674ca523b676c90c7a1d2841b1267ba9ba614">DECOMP_SVD</a> method, as the most accurate). </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">v1</td><td>first 1D input vector. </td></tr>
    <tr><td class="paramname">v2</td><td>second 1D input vector. </td></tr>
    <tr><td class="paramname">icovar</td><td>inverse covariance matrix. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="gacc40fa15eac0fb83f8ca70b7cc0b588d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gacc40fa15eac0fb83f8ca70b7cc0b588d">◆ </a></span>max() <span class="overload">[1/3]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::max </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.max(</td><td class="paramname">src1, src2[, dst]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Calculates per-element maximum of two arrays or an array and a scalar. </p>
<p>The function <a class="el" href="../../d7/dcc/group__core__utils__softfloat.html#ga78f988f6cfa6223610298cbd4f86ec66">cv::max</a> calculates the per-element maximum of two arrays: </p><p class="formulaDsp">
\[\texttt{dst} (I)= \max ( \texttt{src1} (I), \texttt{src2} (I))\]
</p>
<p> or array and a scalar: </p><p class="formulaDsp">
\[\texttt{dst} (I)= \max ( \texttt{src1} (I), \texttt{value} )\]
</p>
 <dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src1</td><td>first input array. </td></tr>
    <tr><td class="paramname">src2</td><td>second input array of the same size and type as src1 . </td></tr>
    <tr><td class="paramname">dst</td><td>output array of the same size and type as src1. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d7/dcc/group__core__utils__softfloat.html#gac48df53b8fd34b87e7b121fa8fd4c379" title="Min and Max functions. ">min</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga303cfb72acf8cbb36d884650c09a3a97" title="Performs the per-element comparison of two arrays or an array and scalar value. ">compare</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga48af0ab51e36436c5d04340e036ce981" title="Checks if array elements lie between the elements of two other arrays. ">inRange</a>, <a class="el" href="../../d2/de8/group__core__array.html#gab473bf2eb6d14ff97e89b355dac20707" title="Finds the global minimum and maximum in an array. ">minMaxLoc</a>, <a class="el" href="../../d1/d10/classcv_1_1MatExpr.html#MatrixExpressions">MatrixExpressions</a> </dd></dl>
</div>
</div>
<a id="gad81c37ed0b0fd23ede0cefadbf04af44"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad81c37ed0b0fd23ede0cefadbf04af44">◆ </a></span>max() <span class="overload">[2/3]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::max </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp; </td>
          <td class="paramname"><em>src1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp; </td>
          <td class="paramname"><em>src2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp; </td>
          <td class="paramname"><em>dst</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.max(</td><td class="paramname">src1, src2[, dst]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. needed to avoid conflicts with const _Tp&amp; std::min(const _Tp&amp;, const _Tp&amp;, _Compare) </p>
</div>
</div>
<a id="ga6eefd595055bf1ea4ba3d12f70531511"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6eefd595055bf1ea4ba3d12f70531511">◆ </a></span>max() <span class="overload">[3/3]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::max </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../d7/d45/classcv_1_1UMat.html">UMat</a> &amp; </td>
          <td class="paramname"><em>src1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../d7/d45/classcv_1_1UMat.html">UMat</a> &amp; </td>
          <td class="paramname"><em>src2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d7/d45/classcv_1_1UMat.html">UMat</a> &amp; </td>
          <td class="paramname"><em>dst</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.max(</td><td class="paramname">src1, src2[, dst]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. needed to avoid conflicts with const _Tp&amp; std::min(const _Tp&amp;, const _Tp&amp;, _Compare) </p>
</div>
</div>
<a id="ga191389f8a0e58180bb13a727782cd461"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga191389f8a0e58180bb13a727782cd461">◆ </a></span>mean()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> cv::mean </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>mask</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>()</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.mean(</td><td class="paramname">src[, mask]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Calculates an average (mean) of array elements. </p>
<p>The function <a class="el" href="../../d2/de8/group__core__array.html#ga191389f8a0e58180bb13a727782cd461" title="Calculates an average (mean) of array elements. ">cv::mean</a> calculates the mean value M of array elements, independently for each channel, and return it: </p><p class="formulaDsp">
\[\begin{array}{l} N = \sum _{I: \; \texttt{mask} (I) \ne 0} 1 \\ M_c = \left ( \sum _{I: \; \texttt{mask} (I) \ne 0}{ \texttt{mtx} (I)_c} \right )/N \end{array}\]
</p>
<p> When all the mask elements are 0's, the function returns Scalar::all(0) </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input array that should have from 1 to 4 channels so that the result can be stored in <a class="el" href="../../d1/da0/classcv_1_1Scalar__.html" title="Template class for a 4-element vector derived from Vec. ">Scalar_</a> . </td></tr>
    <tr><td class="paramname">mask</td><td>optional operation mask. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d2/de8/group__core__array.html#gaa4b89393263bb4d604e0fe5986723914" title="Counts non-zero array elements. ">countNonZero</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga846c858f4004d59493d7c6a4354b301d">meanStdDev</a>, <a class="el" href="../../dc/d84/group__core__basic.html#ga4e556cb8ad35a643a1ea66e035711bb9">norm</a>, <a class="el" href="../../d2/de8/group__core__array.html#gab473bf2eb6d14ff97e89b355dac20707" title="Finds the global minimum and maximum in an array. ">minMaxLoc</a> </dd></dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../d9/d8d/samples_2dnn_2classification_8cpp-example.html#a7">samples/dnn/classification.cpp</a>, <a class="el" href="../../d4/db9/samples_2dnn_2object_detection_8cpp-example.html#a4">samples/dnn/object_detection.cpp</a>, and <a class="el" href="../../d4/d88/samples_2dnn_2segmentation_8cpp-example.html#a4">samples/dnn/segmentation.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="ga846c858f4004d59493d7c6a4354b301d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga846c858f4004d59493d7c6a4354b301d">◆ </a></span>meanStdDev()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::meanStdDev </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>mean</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>stddev</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>mask</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>()</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>mean, stddev</td><td>=</td><td>cv.meanStdDev(</td><td class="paramname">src[, mean[, stddev[, mask]]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Calculates a mean and standard deviation of array elements.</p>
<p>The function <a class="el" href="../../d2/de8/group__core__array.html#ga846c858f4004d59493d7c6a4354b301d">cv::meanStdDev</a> calculates the mean and the standard deviation M of array elements independently for each channel and returns it via the output parameters: </p><p class="formulaDsp">
\[\begin{array}{l} N = \sum _{I, \texttt{mask} (I) \ne 0} 1 \\ \texttt{mean} _c = \frac{\sum_{ I: \; \texttt{mask}(I) \ne 0} \texttt{src} (I)_c}{N} \\ \texttt{stddev} _c = \sqrt{\frac{\sum_{ I: \; \texttt{mask}(I) \ne 0} \left ( \texttt{src} (I)_c - \texttt{mean} _c \right )^2}{N}} \end{array}\]
</p>
<p> When all the mask elements are 0's, the function returns mean=stddev=Scalar::all(0). </p><dl class="section note"><dt>Note</dt><dd>The calculated standard deviation is only the diagonal of the complete normalized covariance matrix. If the full matrix is needed, you can reshape the multi-channel array M x N to the single-channel array M*N x mtx.channels() (only possible when the matrix is continuous) and then pass the matrix to calcCovarMatrix . </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input array that should have from 1 to 4 channels so that the results can be stored in <a class="el" href="../../d1/da0/classcv_1_1Scalar__.html" title="Template class for a 4-element vector derived from Vec. ">Scalar_</a> 's. </td></tr>
    <tr><td class="paramname">mean</td><td>output parameter: calculated mean value. </td></tr>
    <tr><td class="paramname">stddev</td><td>output parameter: calculated standard deviation. </td></tr>
    <tr><td class="paramname">mask</td><td>optional operation mask. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d2/de8/group__core__array.html#gaa4b89393263bb4d604e0fe5986723914" title="Counts non-zero array elements. ">countNonZero</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga191389f8a0e58180bb13a727782cd461" title="Calculates an average (mean) of array elements. ">mean</a>, <a class="el" href="../../dc/d84/group__core__basic.html#ga4e556cb8ad35a643a1ea66e035711bb9">norm</a>, <a class="el" href="../../d2/de8/group__core__array.html#gab473bf2eb6d14ff97e89b355dac20707" title="Finds the global minimum and maximum in an array. ">minMaxLoc</a>, <a class="el" href="../../d2/de8/group__core__array.html#gae6ffa9354633f984246945d52823165d" title="Calculates the covariance matrix of a set of vectors. ">calcCovarMatrix</a> </dd></dl>
</div>
</div>
<a id="ga7d7b4d6c6ee504b30a20b1680029c7b4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7d7b4d6c6ee504b30a20b1680029c7b4">◆ </a></span>merge() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::merge </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> * </td>
          <td class="paramname"><em>mv</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t </td>
          <td class="paramname"><em>count</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.merge(</td><td class="paramname">mv[, dst]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Creates one multi-channel array out of several single-channel ones. </p>
<p>The function <a class="el" href="../../d2/de8/group__core__array.html#ga7d7b4d6c6ee504b30a20b1680029c7b4" title="Creates one multi-channel array out of several single-channel ones. ">cv::merge</a> merges several arrays to make a single multi-channel array. That is, each element of the output array will be a concatenation of the elements of the input arrays, where elements of i-th input array are treated as mv[i].channels()-element vectors.</p>
<p>The function <a class="el" href="../../d2/de8/group__core__array.html#ga0547c7fed86152d7e9d0096029c8518a" title="Divides a multi-channel array into several single-channel arrays. ">cv::split</a> does the reverse operation. If you need to shuffle channels in some other advanced way, use <a class="el" href="../../d2/de8/group__core__array.html#ga51d768c270a1cdd3497255017c4504be" title="Copies specified channels from input arrays to the specified channels of output arrays. ">cv::mixChannels</a>.</p>
<p>The following example shows how to merge 3 single channel matrices into a single 3-channel matrix. </p><div class="fragment"><div class="line">    Mat m1 = (Mat_&lt;uchar&gt;(2,2) &lt;&lt; 1,4,7,10);</div><div class="line">    Mat m2 = (Mat_&lt;uchar&gt;(2,2) &lt;&lt; 2,5,8,11);</div><div class="line">    Mat m3 = (Mat_&lt;uchar&gt;(2,2) &lt;&lt; 3,6,9,12);</div><div class="line"></div><div class="line">    Mat channels[3] = {m1, m2, m3};</div><div class="line">    Mat m;</div><div class="line">    <a class="code" href="../../d2/de8/group__core__array.html#ga7d7b4d6c6ee504b30a20b1680029c7b4">merge</a>(channels, 3, m);</div><div class="line">    <span class="comment">/*</span></div><div class="line"><span class="comment">    m =</span></div><div class="line"><span class="comment">    [  1,   2,   3,   4,   5,   6;</span></div><div class="line"><span class="comment">       7,   8,   9,  10,  11,  12]</span></div><div class="line"><span class="comment">    m.channels() = 3</span></div><div class="line"><span class="comment">    */</span></div></div><!-- fragment --> <dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">mv</td><td>input array of matrices to be merged; all the matrices in mv must have the same size and the same depth. </td></tr>
    <tr><td class="paramname">count</td><td>number of input matrices when mv is a plain C array; it must be greater than zero. </td></tr>
    <tr><td class="paramname">dst</td><td>output array of the same size and the same depth as mv[0]; The number of channels will be equal to the parameter count. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d2/de8/group__core__array.html#ga51d768c270a1cdd3497255017c4504be" title="Copies specified channels from input arrays to the specified channels of output arrays. ">mixChannels</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga0547c7fed86152d7e9d0096029c8518a" title="Divides a multi-channel array into several single-channel arrays. ">split</a>, <a class="el" href="../../d3/d63/classcv_1_1Mat.html#a4eb96e3251417fa88b78e2abd6cfd7d8" title="Changes the shape and/or the number of channels of a 2D matrix without copying the data...">Mat::reshape</a> </dd></dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../d4/dc6/samples_2cpp_2distrans_8cpp-example.html#a11">samples/cpp/distrans.cpp</a>, <a class="el" href="../../d3/d9c/samples_2cpp_2tutorial_code_2videoio_2video-write_2video-write_8cpp-example.html#a16">samples/cpp/tutorial_code/videoio/video-write/video-write.cpp</a>, and <a class="el" href="../../d6/d39/samples_2dnn_2colorization_8cpp-example.html#a25">samples/dnn/colorization.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="ga61f2f2bde4a0a0154b2333ea504fab1d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga61f2f2bde4a0a0154b2333ea504fab1d">◆ </a></span>merge() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::merge </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga606feabe3b50ab6838f1ba89727aa07a">InputArrayOfArrays</a> </td>
          <td class="paramname"><em>mv</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.merge(</td><td class="paramname">mv[, dst]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">mv</td><td>input vector of matrices to be merged; all the matrices in mv must have the same size and the same depth. </td></tr>
    <tr><td class="paramname">dst</td><td>output array of the same size and the same depth as mv[0]; The number of channels will be the total number of channels in the matrix array. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="ga9af368f182ee76d0463d0d8d5330b764"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9af368f182ee76d0463d0d8d5330b764">◆ </a></span>min() <span class="overload">[1/3]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::min </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.min(</td><td class="paramname">src1, src2[, dst]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Calculates per-element minimum of two arrays or an array and a scalar. </p>
<p>The function <a class="el" href="../../d7/dcc/group__core__utils__softfloat.html#gac48df53b8fd34b87e7b121fa8fd4c379" title="Min and Max functions. ">cv::min</a> calculates the per-element minimum of two arrays: </p><p class="formulaDsp">
\[\texttt{dst} (I)= \min ( \texttt{src1} (I), \texttt{src2} (I))\]
</p>
<p> or array and a scalar: </p><p class="formulaDsp">
\[\texttt{dst} (I)= \min ( \texttt{src1} (I), \texttt{value} )\]
</p>
 <dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src1</td><td>first input array. </td></tr>
    <tr><td class="paramname">src2</td><td>second input array of the same size and type as src1. </td></tr>
    <tr><td class="paramname">dst</td><td>output array of the same size and type as src1. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d7/dcc/group__core__utils__softfloat.html#ga78f988f6cfa6223610298cbd4f86ec66">max</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga303cfb72acf8cbb36d884650c09a3a97" title="Performs the per-element comparison of two arrays or an array and scalar value. ">compare</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga48af0ab51e36436c5d04340e036ce981" title="Checks if array elements lie between the elements of two other arrays. ">inRange</a>, <a class="el" href="../../d2/de8/group__core__array.html#gab473bf2eb6d14ff97e89b355dac20707" title="Finds the global minimum and maximum in an array. ">minMaxLoc</a> </dd></dl>
</div>
</div>
<a id="ga0b8852cd1a92366860e390e8abbe78dc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0b8852cd1a92366860e390e8abbe78dc">◆ </a></span>min() <span class="overload">[2/3]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::min </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp; </td>
          <td class="paramname"><em>src1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp; </td>
          <td class="paramname"><em>src2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp; </td>
          <td class="paramname"><em>dst</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.min(</td><td class="paramname">src1, src2[, dst]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. needed to avoid conflicts with const _Tp&amp; std::min(const _Tp&amp;, const _Tp&amp;, _Compare) </p>
</div>
</div>
<a id="gaa83bf3dce9a4a488675347fff6692cb9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa83bf3dce9a4a488675347fff6692cb9">◆ </a></span>min() <span class="overload">[3/3]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::min </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../d7/d45/classcv_1_1UMat.html">UMat</a> &amp; </td>
          <td class="paramname"><em>src1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../d7/d45/classcv_1_1UMat.html">UMat</a> &amp; </td>
          <td class="paramname"><em>src2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d7/d45/classcv_1_1UMat.html">UMat</a> &amp; </td>
          <td class="paramname"><em>dst</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.min(</td><td class="paramname">src1, src2[, dst]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. needed to avoid conflicts with const _Tp&amp; std::min(const _Tp&amp;, const _Tp&amp;, _Compare) </p>
</div>
</div>
<a id="ga7622c466c628a75d9ed008b42250a73f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7622c466c628a75d9ed008b42250a73f">◆ </a></span>minMaxIdx()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::minMaxIdx </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double * </td>
          <td class="paramname"><em>minVal</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double * </td>
          <td class="paramname"><em>maxVal</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int * </td>
          <td class="paramname"><em>minIdx</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int * </td>
          <td class="paramname"><em>maxIdx</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>mask</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>()</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Finds the global minimum and maximum in an array. </p>
<p>The function <a class="el" href="../../d2/de8/group__core__array.html#ga7622c466c628a75d9ed008b42250a73f" title="Finds the global minimum and maximum in an array. ">cv::minMaxIdx</a> finds the minimum and maximum element values and their positions. The extremums are searched across the whole array or, if mask is not an empty array, in the specified array region. The function does not work with multi-channel arrays. If you need to find minimum or maximum elements across all the channels, use <a class="el" href="../../d3/d63/classcv_1_1Mat.html#a4eb96e3251417fa88b78e2abd6cfd7d8" title="Changes the shape and/or the number of channels of a 2D matrix without copying the data...">Mat::reshape</a> first to reinterpret the array as single-channel. Or you may extract the particular channel using either extractImageCOI , or mixChannels , or split . In case of a sparse matrix, the minimum is found among non-zero elements only. </p><dl class="section note"><dt>Note</dt><dd>When minIdx is not NULL, it must have at least 2 elements (as well as maxIdx), even if src is a single-row or single-column matrix. In OpenCV (following MATLAB) each array has at least 2 dimensions, i.e. single-column matrix is Mx1 matrix (and therefore minIdx/maxIdx will be (i1,0)/(i2,0)) and single-row matrix is 1xN matrix (and therefore minIdx/maxIdx will be (0,j1)/(0,j2)). </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input single-channel array. </td></tr>
    <tr><td class="paramname">minVal</td><td>pointer to the returned minimum value; NULL is used if not required. </td></tr>
    <tr><td class="paramname">maxVal</td><td>pointer to the returned maximum value; NULL is used if not required. </td></tr>
    <tr><td class="paramname">minIdx</td><td>pointer to the returned minimum location (in nD case); NULL is used if not required; Otherwise, it must point to an array of src.dims elements, the coordinates of the minimum element in each dimension are stored there sequentially. </td></tr>
    <tr><td class="paramname">maxIdx</td><td>pointer to the returned maximum location (in nD case). NULL is used if not required. </td></tr>
    <tr><td class="paramname">mask</td><td>specified array region </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="gab473bf2eb6d14ff97e89b355dac20707"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab473bf2eb6d14ff97e89b355dac20707">◆ </a></span>minMaxLoc() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::minMaxLoc </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double * </td>
          <td class="paramname"><em>minVal</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double * </td>
          <td class="paramname"><em>maxVal</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> * </td>
          <td class="paramname"><em>minLoc</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> * </td>
          <td class="paramname"><em>maxLoc</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>mask</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>()</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>minVal, maxVal, minLoc, maxLoc</td><td>=</td><td>cv.minMaxLoc(</td><td class="paramname">src[, mask]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Finds the global minimum and maximum in an array. </p>
<p>The function <a class="el" href="../../d2/de8/group__core__array.html#gab473bf2eb6d14ff97e89b355dac20707" title="Finds the global minimum and maximum in an array. ">cv::minMaxLoc</a> finds the minimum and maximum element values and their positions. The extremums are searched across the whole array or, if mask is not an empty array, in the specified array region.</p>
<p>The function do not work with multi-channel arrays. If you need to find minimum or maximum elements across all the channels, use <a class="el" href="../../d3/d63/classcv_1_1Mat.html#a4eb96e3251417fa88b78e2abd6cfd7d8" title="Changes the shape and/or the number of channels of a 2D matrix without copying the data...">Mat::reshape</a> first to reinterpret the array as single-channel. Or you may extract the particular channel using either extractImageCOI , or mixChannels , or split . </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input single-channel array. </td></tr>
    <tr><td class="paramname">minVal</td><td>pointer to the returned minimum value; NULL is used if not required. </td></tr>
    <tr><td class="paramname">maxVal</td><td>pointer to the returned maximum value; NULL is used if not required. </td></tr>
    <tr><td class="paramname">minLoc</td><td>pointer to the returned minimum location (in 2D case); NULL is used if not required. </td></tr>
    <tr><td class="paramname">maxLoc</td><td>pointer to the returned maximum location (in 2D case); NULL is used if not required. </td></tr>
    <tr><td class="paramname">mask</td><td>optional mask used to select a sub-array. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d7/dcc/group__core__utils__softfloat.html#ga78f988f6cfa6223610298cbd4f86ec66">max</a>, <a class="el" href="../../d7/dcc/group__core__utils__softfloat.html#gac48df53b8fd34b87e7b121fa8fd4c379" title="Min and Max functions. ">min</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga303cfb72acf8cbb36d884650c09a3a97" title="Performs the per-element comparison of two arrays or an array and scalar value. ">compare</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga48af0ab51e36436c5d04340e036ce981" title="Checks if array elements lie between the elements of two other arrays. ">inRange</a>, extractImageCOI, <a class="el" href="../../d2/de8/group__core__array.html#ga51d768c270a1cdd3497255017c4504be" title="Copies specified channels from input arrays to the specified channels of output arrays. ">mixChannels</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga0547c7fed86152d7e9d0096029c8518a" title="Divides a multi-channel array into several single-channel arrays. ">split</a>, <a class="el" href="../../d3/d63/classcv_1_1Mat.html#a4eb96e3251417fa88b78e2abd6cfd7d8" title="Changes the shape and/or the number of channels of a 2D matrix without copying the data...">Mat::reshape</a> </dd></dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../dd/d93/samples_2cpp_2image_alignment_8cpp-example.html#a50">samples/cpp/image_alignment.cpp</a>, <a class="el" href="../../d8/ded/samples_2cpp_2tutorial_code_2Histograms_Matching_2MatchTemplate_Demo_8cpp-example.html#a20">samples/cpp/tutorial_code/Histograms_Matching/MatchTemplate_Demo.cpp</a>, <a class="el" href="../../d9/d8d/samples_2dnn_2classification_8cpp-example.html#a28">samples/dnn/classification.cpp</a>, <a class="el" href="../../d4/db9/samples_2dnn_2object_detection_8cpp-example.html#a42">samples/dnn/object_detection.cpp</a>, and <a class="el" href="../../d7/d4f/samples_2dnn_2openpose_8cpp-example.html#a19">samples/dnn/openpose.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="ga8873b86a29c5af51cafdcee82f8150a7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga8873b86a29c5af51cafdcee82f8150a7">◆ </a></span>minMaxLoc() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::minMaxLoc </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../dd/da9/classcv_1_1SparseMat.html">SparseMat</a> &amp; </td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double * </td>
          <td class="paramname"><em>minVal</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double * </td>
          <td class="paramname"><em>maxVal</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int * </td>
          <td class="paramname"><em>minIdx</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int * </td>
          <td class="paramname"><em>maxIdx</em> = <code>0</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>minVal, maxVal, minLoc, maxLoc</td><td>=</td><td>cv.minMaxLoc(</td><td class="paramname">src[, mask]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">a</td><td>input single-channel array. </td></tr>
    <tr><td class="paramname">minVal</td><td>pointer to the returned minimum value; NULL is used if not required. </td></tr>
    <tr><td class="paramname">maxVal</td><td>pointer to the returned maximum value; NULL is used if not required. </td></tr>
    <tr><td class="paramname">minIdx</td><td>pointer to the returned minimum location (in nD case); NULL is used if not required; Otherwise, it must point to an array of src.dims elements, the coordinates of the minimum element in each dimension are stored there sequentially. </td></tr>
    <tr><td class="paramname">maxIdx</td><td>pointer to the returned maximum location (in nD case). NULL is used if not required. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="ga51d768c270a1cdd3497255017c4504be"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga51d768c270a1cdd3497255017c4504be">◆ </a></span>mixChannels() <span class="overload">[1/3]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::mixChannels </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> * </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t </td>
          <td class="paramname"><em>nsrcs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> * </td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t </td>
          <td class="paramname"><em>ndsts</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int * </td>
          <td class="paramname"><em>fromTo</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t </td>
          <td class="paramname"><em>npairs</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.mixChannels(</td><td class="paramname">src, dst, fromTo</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Copies specified channels from input arrays to the specified channels of output arrays. </p>
<p>The function <a class="el" href="../../d2/de8/group__core__array.html#ga51d768c270a1cdd3497255017c4504be" title="Copies specified channels from input arrays to the specified channels of output arrays. ">cv::mixChannels</a> provides an advanced mechanism for shuffling image channels.</p>
<p><a class="el" href="../../d2/de8/group__core__array.html#ga0547c7fed86152d7e9d0096029c8518a" title="Divides a multi-channel array into several single-channel arrays. ">cv::split</a>,<a class="el" href="../../d2/de8/group__core__array.html#ga7d7b4d6c6ee504b30a20b1680029c7b4" title="Creates one multi-channel array out of several single-channel ones. ">cv::merge</a>,<a class="el" href="../../d2/de8/group__core__array.html#gacc6158574aa1f0281878c955bcf35642" title="Extracts a single channel from src (coi is 0-based index) ">cv::extractChannel</a>,<a class="el" href="../../d2/de8/group__core__array.html#ga1d4bd886d35b00ec0b764cb4ce6eb515" title="Inserts a single channel to dst (coi is 0-based index) ">cv::insertChannel</a> and some forms of <a class="el" href="../../d8/d01/group__imgproc__color__conversions.html#ga397ae87e1288a81d2363b61574eb8cab" title="Converts an image from one color space to another. ">cv::cvtColor</a> are partial cases of <a class="el" href="../../d2/de8/group__core__array.html#ga51d768c270a1cdd3497255017c4504be" title="Copies specified channels from input arrays to the specified channels of output arrays. ">cv::mixChannels</a>.</p>
<p>In the example below, the code splits a 4-channel BGRA image into a 3-channel BGR (with B and R channels swapped) and a separate alpha-channel image: </p><div class="fragment"><div class="line">Mat bgra( 100, 100, <a class="code" href="../../d1/d1b/group__core__hal__interface.html#ga4519ad2827f771db8260c61207b782df">CV_8UC4</a>, <a class="code" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a>(255,0,0,255) );</div><div class="line">Mat bgr( bgra.rows, bgra.cols, <a class="code" href="../../d1/d1b/group__core__hal__interface.html#ga88c4cd9de76f678f33928ef1e3f96047">CV_8UC3</a> );</div><div class="line">Mat alpha( bgra.rows, bgra.cols, <a class="code" href="../../d1/d1b/group__core__hal__interface.html#ga81df635441b21f532fdace401e04f588">CV_8UC1</a> );</div><div class="line"></div><div class="line"><span class="comment">// forming an array of matrices is a quite efficient operation,</span></div><div class="line"><span class="comment">// because the matrix data is not copied, only the headers</span></div><div class="line">Mat out[] = { bgr, alpha };</div><div class="line"><span class="comment">// bgra[0] -&gt; bgr[2], bgra[1] -&gt; bgr[1],</span></div><div class="line"><span class="comment">// bgra[2] -&gt; bgr[0], bgra[3] -&gt; alpha[0]</span></div><div class="line"><span class="keywordtype">int</span> from_to[] = { 0,2, 1,1, 2,0, 3,3 };</div><div class="line"><a class="code" href="../../d2/de8/group__core__array.html#ga51d768c270a1cdd3497255017c4504be">mixChannels</a>( &amp;bgra, 1, out, 2, from_to, 4 );</div></div><!-- fragment --> <dl class="section note"><dt>Note</dt><dd>Unlike many other new-style C++ functions in OpenCV (see the introduction section and <a class="el" href="../../d3/d63/classcv_1_1Mat.html#a55ced2c8d844d683ea9a725c60037ad0" title="Allocates new array data if needed. ">Mat::create</a> ), <a class="el" href="../../d2/de8/group__core__array.html#ga51d768c270a1cdd3497255017c4504be" title="Copies specified channels from input arrays to the specified channels of output arrays. ">cv::mixChannels</a> requires the output arrays to be pre-allocated before calling the function. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input array or vector of matrices; all of the matrices must have the same size and the same depth. </td></tr>
    <tr><td class="paramname">nsrcs</td><td>number of matrices in <code>src</code>. </td></tr>
    <tr><td class="paramname">dst</td><td>output array or vector of matrices; all the matrices <b>must be allocated</b>; their size and depth must be the same as in <code>src[0]</code>. </td></tr>
    <tr><td class="paramname">ndsts</td><td>number of matrices in <code>dst</code>. </td></tr>
    <tr><td class="paramname">fromTo</td><td>array of index pairs specifying which channels are copied and where; fromTo[k*2] is a 0-based index of the input channel in src, fromTo[k*2+1] is an index of the output channel in dst; the continuous channel numbering is used: the first input image channels are indexed from 0 to src[0].channels()-1, the second input image channels are indexed from src[0].channels() to src[0].channels() + src[1].channels()-1, and so on, the same scheme is used for the output image channels; as a special case, when fromTo[k*2] is negative, the corresponding output channel is filled with zero . </td></tr>
    <tr><td class="paramname">npairs</td><td>number of index pairs in <code>fromTo</code>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d2/de8/group__core__array.html#ga0547c7fed86152d7e9d0096029c8518a" title="Divides a multi-channel array into several single-channel arrays. ">split</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga7d7b4d6c6ee504b30a20b1680029c7b4" title="Creates one multi-channel array out of several single-channel ones. ">merge</a>, <a class="el" href="../../d2/de8/group__core__array.html#gacc6158574aa1f0281878c955bcf35642" title="Extracts a single channel from src (coi is 0-based index) ">extractChannel</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga1d4bd886d35b00ec0b764cb4ce6eb515" title="Inserts a single channel to dst (coi is 0-based index) ">insertChannel</a>, <a class="el" href="../../d8/d01/group__imgproc__color__conversions.html#ga397ae87e1288a81d2363b61574eb8cab" title="Converts an image from one color space to another. ">cvtColor</a> </dd></dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../d6/d7f/samples_2cpp_2camshiftdemo_8cpp-example.html#a39">samples/cpp/camshiftdemo.cpp</a>, <a class="el" href="../../db/d00/samples_2cpp_2squares_8cpp-example.html#a13">samples/cpp/squares.cpp</a>, and <a class="el" href="../../de/dc0/samples_2tapi_2squares_8cpp-example.html#a12">samples/tapi/squares.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="ga89dd05fd8fe54f5b7b5d89bca21153a1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga89dd05fd8fe54f5b7b5d89bca21153a1">◆ </a></span>mixChannels() <span class="overload">[2/3]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::mixChannels </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga606feabe3b50ab6838f1ba89727aa07a">InputArrayOfArrays</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga8899575c0929a56ab8bdd01cf34ebcb1">InputOutputArrayOfArrays</a> </td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int * </td>
          <td class="paramname"><em>fromTo</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t </td>
          <td class="paramname"><em>npairs</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.mixChannels(</td><td class="paramname">src, dst, fromTo</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input array or vector of matrices; all of the matrices must have the same size and the same depth. </td></tr>
    <tr><td class="paramname">dst</td><td>output array or vector of matrices; all the matrices <b>must be allocated</b>; their size and depth must be the same as in src[0]. </td></tr>
    <tr><td class="paramname">fromTo</td><td>array of index pairs specifying which channels are copied and where; fromTo[k*2] is a 0-based index of the input channel in src, fromTo[k*2+1] is an index of the output channel in dst; the continuous channel numbering is used: the first input image channels are indexed from 0 to src[0].channels()-1, the second input image channels are indexed from src[0].channels() to src[0].channels() + src[1].channels()-1, and so on, the same scheme is used for the output image channels; as a special case, when fromTo[k*2] is negative, the corresponding output channel is filled with zero . </td></tr>
    <tr><td class="paramname">npairs</td><td>number of index pairs in fromTo. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="ga83b61f9875e6618ee08487b21ec71ab1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga83b61f9875e6618ee08487b21ec71ab1">◆ </a></span>mixChannels() <span class="overload">[3/3]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::mixChannels </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga606feabe3b50ab6838f1ba89727aa07a">InputArrayOfArrays</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga8899575c0929a56ab8bdd01cf34ebcb1">InputOutputArrayOfArrays</a> </td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::vector&lt; int &gt; &amp; </td>
          <td class="paramname"><em>fromTo</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.mixChannels(</td><td class="paramname">src, dst, fromTo</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input array or vector of matrices; all of the matrices must have the same size and the same depth. </td></tr>
    <tr><td class="paramname">dst</td><td>output array or vector of matrices; all the matrices <b>must be allocated</b>; their size and depth must be the same as in src[0]. </td></tr>
    <tr><td class="paramname">fromTo</td><td>array of index pairs specifying which channels are copied and where; fromTo[k*2] is a 0-based index of the input channel in src, fromTo[k*2+1] is an index of the output channel in dst; the continuous channel numbering is used: the first input image channels are indexed from 0 to src[0].channels()-1, the second input image channels are indexed from src[0].channels() to src[0].channels() + src[1].channels()-1, and so on, the same scheme is used for the output image channels; as a special case, when fromTo[k*2] is negative, the corresponding output channel is filled with zero . </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="ga3ab38646463c59bf0ce962a9d51db64f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga3ab38646463c59bf0ce962a9d51db64f">◆ </a></span>mulSpectrums()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::mulSpectrums </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>c</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>flags</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool </td>
          <td class="paramname"><em>conjB</em> = <code>false</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>c</td><td>=</td><td>cv.mulSpectrums(</td><td class="paramname">a, b, flags[, c[, conjB]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Performs the per-element multiplication of two Fourier spectrums. </p>
<p>The function <a class="el" href="../../d2/de8/group__core__array.html#ga3ab38646463c59bf0ce962a9d51db64f" title="Performs the per-element multiplication of two Fourier spectrums. ">cv::mulSpectrums</a> performs the per-element multiplication of the two CCS-packed or complex matrices that are results of a real or complex Fourier transform.</p>
<p>The function, together with dft and idft , may be used to calculate convolution (pass conjB=false ) or correlation (pass conjB=true ) of two arrays rapidly. When the arrays are complex, they are simply multiplied (per element) with an optional conjugation of the second-array elements. When the arrays are real, they are assumed to be CCS-packed (see dft for details). </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">a</td><td>first input array. </td></tr>
    <tr><td class="paramname">b</td><td>second input array of the same size and type as src1 . </td></tr>
    <tr><td class="paramname">c</td><td>output array of the same size and type as src1 . </td></tr>
    <tr><td class="paramname">flags</td><td>operation flags; currently, the only supported flag is <a class="el" href="../../d2/de8/group__core__array.html#ggaf4dde112b483b38175621befedda1f1ca1744dc1cf1249944bc841e78c1565b7f">cv::DFT_ROWS</a>, which indicates that each row of src1 and src2 is an independent 1D Fourier spectrum. If you do not want to use this flag, then simply add a <code>0</code> as value. </td></tr>
    <tr><td class="paramname">conjB</td><td>optional flag that conjugates the second input array before the multiplication (true) or not (false). </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="ga979d898a58d7f61c53003e162e7ad89f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga979d898a58d7f61c53003e162e7ad89f">◆ </a></span>multiply()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::multiply </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>scale</em> = <code>1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>dtype</em> = <code>-1</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.multiply(</td><td class="paramname">src1, src2[, dst[, scale[, dtype]]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Calculates the per-element scaled product of two arrays. </p>
<p>The function multiply calculates the per-element product of two arrays:</p>
<p class="formulaDsp">
\[\texttt{dst} (I)= \texttt{saturate} ( \texttt{scale} \cdot \texttt{src1} (I) \cdot \texttt{src2} (I))\]
</p>
<p>There is also a <a class="el" href="../../d1/d10/classcv_1_1MatExpr.html#MatrixExpressions">MatrixExpressions</a> -friendly variant of the first function. See <a class="el" href="../../d3/d63/classcv_1_1Mat.html#a385c09827713dc3e6d713bfad8460706" title="Performs an element-wise multiplication or division of the two matrices. ">Mat::mul</a> .</p>
<p>For a not-per-element matrix product, see gemm .</p>
<dl class="section note"><dt>Note</dt><dd>Saturation is not applied when the output array has the depth CV_32S. You may even get result of an incorrect sign in the case of overflow. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src1</td><td>first input array. </td></tr>
    <tr><td class="paramname">src2</td><td>second input array of the same size and the same type as src1. </td></tr>
    <tr><td class="paramname">dst</td><td>output array of the same size and type as src1. </td></tr>
    <tr><td class="paramname">scale</td><td>optional scale factor. </td></tr>
    <tr><td class="paramname">dtype</td><td>optional depth of the output array </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d2/de8/group__core__array.html#ga10ac1bfb180e2cfda1701d06c24fdbd6" title="Calculates the per-element sum of two arrays or an array and a scalar. ">add</a>, <a class="el" href="../../d2/de8/group__core__array.html#gaa0f00d98b4b5edeaeb7b8333b2de353b" title="Calculates the per-element difference between two arrays or array and a scalar. ">subtract</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga6db555d30115642fedae0cda05604874" title="Performs per-element division of two arrays or a scalar by an array. ">divide</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga9e0845db4135f55dcf20227402f00d98" title="Calculates the sum of a scaled array and another array. ">scaleAdd</a>, <a class="el" href="../../d2/de8/group__core__array.html#gafafb2513349db3bcff51f54ee5592a19" title="Calculates the weighted sum of two arrays. ">addWeighted</a>, <a class="el" href="../../d7/df3/group__imgproc__motion.html#ga1a567a79901513811ff3b9976923b199" title="Adds an image to the accumulator image. ">accumulate</a>, <a class="el" href="../../d7/df3/group__imgproc__motion.html#ga82518a940ecfda49460f66117ac82520" title="Adds the per-element product of two input images to the accumulator image. ">accumulateProduct</a>, <a class="el" href="../../d7/df3/group__imgproc__motion.html#gacb75e7ffb573227088cef9ceaf80be8c" title="Adds the square of a source image to the accumulator image. ">accumulateSquare</a>, <a class="el" href="../../d3/d63/classcv_1_1Mat.html#adf88c60c5b4980e05bb556080916978b" title="Converts an array to another data type with optional scaling. ">Mat::convertTo</a> </dd></dl>
</div>
</div>
<a id="gadc4e49f8f7a155044e3be1b9e3b270ab"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gadc4e49f8f7a155044e3be1b9e3b270ab">◆ </a></span>mulTransposed()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::mulTransposed </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool </td>
          <td class="paramname"><em>aTa</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>delta</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>()</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>scale</em> = <code>1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>dtype</em> = <code>-1</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.mulTransposed(</td><td class="paramname">src, aTa[, dst[, delta[, scale[, dtype]]]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Calculates the product of a matrix and its transposition. </p>
<p>The function <a class="el" href="../../d2/de8/group__core__array.html#gadc4e49f8f7a155044e3be1b9e3b270ab" title="Calculates the product of a matrix and its transposition. ">cv::mulTransposed</a> calculates the product of src and its transposition: </p><p class="formulaDsp">
\[\texttt{dst} = \texttt{scale} ( \texttt{src} - \texttt{delta} )^T ( \texttt{src} - \texttt{delta} )\]
</p>
<p> if aTa=true , and </p><p class="formulaDsp">
\[\texttt{dst} = \texttt{scale} ( \texttt{src} - \texttt{delta} ) ( \texttt{src} - \texttt{delta} )^T\]
</p>
<p> otherwise. The function is used to calculate the covariance matrix. With zero delta, it can be used as a faster substitute for general matrix product A*B when B=A' </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input single-channel matrix. Note that unlike gemm, the function can multiply not only floating-point matrices. </td></tr>
    <tr><td class="paramname">dst</td><td>output square matrix. </td></tr>
    <tr><td class="paramname">aTa</td><td>Flag specifying the multiplication ordering. See the description below. </td></tr>
    <tr><td class="paramname">delta</td><td>Optional delta matrix subtracted from src before the multiplication. When the matrix is empty ( delta=<a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray()</a> ), it is assumed to be zero, that is, nothing is subtracted. If it has the same size as src , it is simply subtracted. Otherwise, it is "repeated" (see repeat ) to cover the full src and then subtracted. Type of the delta matrix, when it is not empty, must be the same as the type of created output matrix. See the dtype parameter description below. </td></tr>
    <tr><td class="paramname">scale</td><td>Optional scale factor for the matrix product. </td></tr>
    <tr><td class="paramname">dtype</td><td>Optional type of the output matrix. When it is negative, the output matrix will have the same type as src . Otherwise, it will be type=<a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga39f3412d63cac68d4f1d138ab52a6fc8">CV_MAT_DEPTH(dtype)</a> that should be either CV_32F or CV_64F . </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d2/de8/group__core__array.html#gae6ffa9354633f984246945d52823165d" title="Calculates the covariance matrix of a set of vectors. ">calcCovarMatrix</a>, <a class="el" href="../../d2/de8/group__core__array.html#gacb6e64071dffe36434e1e7ee79e7cb35" title="Performs generalized matrix multiplication. ">gemm</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga496c3860f3ac44c40b48811333cfda2d" title="Fills the output array with repeated copies of the input array. ">repeat</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga4b78072a303f29d9031d56e5638da78e" title="Reduces a matrix to a vector. ">reduce</a> </dd></dl>
</div>
</div>
<a id="ga55a581f0accd8d990af775d378e7e46c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga55a581f0accd8d990af775d378e7e46c">◆ </a></span>norm() <span class="overload">[1/3]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double cv::norm </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>normType</em> = <code><a class="el" href="../../d2/de8/group__core__array.html#ggad12cefbcb5291cf958a85b4b67b6149fa7bacbe84d400336a8f26297d8e80e3a2">NORM_L2</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>mask</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>()</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.norm(</td><td class="paramname">src1[, normType[, mask]]</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.norm(</td><td class="paramname">src1, src2[, normType[, mask]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Calculates the absolute norm of an array. </p>
<p>This version of <a class="el" href="../../dc/d84/group__core__basic.html#ga4e556cb8ad35a643a1ea66e035711bb9">norm</a> calculates the absolute norm of src1. The type of norm to calculate is specified using <a class="el" href="../../d2/de8/group__core__array.html#gad12cefbcb5291cf958a85b4b67b6149f">NormTypes</a>.</p>
<p>As example for one array consider the function \(r(x)= \begin{pmatrix} x \\ 1-x \end{pmatrix}, x \in [-1;1]\). The \( L_{1}, L_{2} \) and \( L_{\infty} \) norm for the sample value \(r(-1) = \begin{pmatrix} -1 \\ 2 \end{pmatrix}\) is calculated as follows </p><p class="formulaDsp">
\begin{align*} \| r(-1) \|_{L_1} &amp;= |-1| + |2| = 3 \\ \| r(-1) \|_{L_2} &amp;= \sqrt{(-1)^{2} + (2)^{2}} = \sqrt{5} \\ \| r(-1) \|_{L_\infty} &amp;= \max(|-1|,|2|) = 2 \end{align*}
</p>
<p> and for \(r(0.5) = \begin{pmatrix} 0.5 \\ 0.5 \end{pmatrix}\) the calculation is </p><p class="formulaDsp">
\begin{align*} \| r(0.5) \|_{L_1} &amp;= |0.5| + |0.5| = 1 \\ \| r(0.5) \|_{L_2} &amp;= \sqrt{(0.5)^{2} + (0.5)^{2}} = \sqrt{0.5} \\ \| r(0.5) \|_{L_\infty} &amp;= \max(|0.5|,|0.5|) = 0.5. \end{align*}
</p>
<p> The following graphic shows all values for the three norm functions \(\| r(x) \|_{L_1}, \| r(x) \|_{L_2}\) and \(\| r(x) \|_{L_\infty}\). It is notable that the \( L_{1} \) norm forms the upper and the \( L_{\infty} \) norm forms the lower border for the example function \( r(x) \). </p><div class="image">
<img alt="NormTypes_OneArray_1-2-INF.png" src="../../NormTypes_OneArray_1-2-INF.png"/>
<div class="caption">
Graphs for the different norm functions from the above example</div></div>
<p> When the mask parameter is specified and it is not empty, the norm is</p>
<p>If normType is not specified, <a class="el" href="../../d2/de8/group__core__array.html#ggad12cefbcb5291cf958a85b4b67b6149fa7bacbe84d400336a8f26297d8e80e3a2">NORM_L2</a> is used. calculated only over the region specified by the mask.</p>
<p>Multi-channel input arrays are treated as single-channel arrays, that is, the results for all channels are combined.</p>
<p><a class="el" href="../../d3/d59/structcv_1_1Hamming.html">Hamming</a> norms can only be calculated with CV_8U depth arrays.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src1</td><td>first input array. </td></tr>
    <tr><td class="paramname">normType</td><td>type of the norm (see <a class="el" href="../../d2/de8/group__core__array.html#gad12cefbcb5291cf958a85b4b67b6149f">NormTypes</a>). </td></tr>
    <tr><td class="paramname">mask</td><td>optional operation mask; it must have the same size as src1 and CV_8UC1 type. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="gae15fc2d956eb3a93ec65339a50dc7b6a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae15fc2d956eb3a93ec65339a50dc7b6a">◆ </a></span>norm() <span class="overload">[2/3]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double cv::norm </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>normType</em> = <code><a class="el" href="../../d2/de8/group__core__array.html#ggad12cefbcb5291cf958a85b4b67b6149fa7bacbe84d400336a8f26297d8e80e3a2">NORM_L2</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>mask</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>()</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.norm(</td><td class="paramname">src1[, normType[, mask]]</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.norm(</td><td class="paramname">src1, src2[, normType[, mask]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Calculates an absolute difference norm or a relative difference norm. </p>
<p>This version of <a class="el" href="../../dc/d84/group__core__basic.html#ga4e556cb8ad35a643a1ea66e035711bb9">cv::norm</a> calculates the absolute difference norm or the relative difference norm of arrays src1 and src2. The type of norm to calculate is specified using <a class="el" href="../../d2/de8/group__core__array.html#gad12cefbcb5291cf958a85b4b67b6149f">NormTypes</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src1</td><td>first input array. </td></tr>
    <tr><td class="paramname">src2</td><td>second input array of the same size and the same type as src1. </td></tr>
    <tr><td class="paramname">normType</td><td>type of the norm (see <a class="el" href="../../d2/de8/group__core__array.html#gad12cefbcb5291cf958a85b4b67b6149f">NormTypes</a>). </td></tr>
    <tr><td class="paramname">mask</td><td>optional operation mask; it must have the same size as src1 and CV_8UC1 type. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="ga7c331fb8dd951707e184ef4e3f21dd33"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7c331fb8dd951707e184ef4e3f21dd33">◆ </a></span>norm() <span class="overload">[3/3]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double cv::norm </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../dd/da9/classcv_1_1SparseMat.html">SparseMat</a> &amp; </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>normType</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.norm(</td><td class="paramname">src1[, normType[, mask]]</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.norm(</td><td class="paramname">src1, src2[, normType[, mask]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>first input array. </td></tr>
    <tr><td class="paramname">normType</td><td>type of the norm (see <a class="el" href="../../d2/de8/group__core__array.html#gad12cefbcb5291cf958a85b4b67b6149f">NormTypes</a>). </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="ga87eef7ee3970f86906d69a92cbf064bd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga87eef7ee3970f86906d69a92cbf064bd">◆ </a></span>normalize() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::normalize </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> </td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>alpha</em> = <code>1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>beta</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>norm_type</em> = <code><a class="el" href="../../d2/de8/group__core__array.html#ggad12cefbcb5291cf958a85b4b67b6149fa7bacbe84d400336a8f26297d8e80e3a2">NORM_L2</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>dtype</em> = <code>-1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>mask</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>()</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.normalize(</td><td class="paramname">src, dst[, alpha[, beta[, norm_type[, dtype[, mask]]]]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Normalizes the norm or value range of an array. </p>
<p>The function <a class="el" href="../../dc/d84/group__core__basic.html#ga1b6a396a456c8b6c6e4afd8591560d80">cv::normalize</a> normalizes scale and shift the input array elements so that </p><p class="formulaDsp">
\[\| \texttt{dst} \| _{L_p}= \texttt{alpha}\]
</p>
<p> (where p=Inf, 1 or 2) when normType=NORM_INF, NORM_L1, or NORM_L2, respectively; or so that </p><p class="formulaDsp">
\[\min _I \texttt{dst} (I)= \texttt{alpha} , \, \, \max _I \texttt{dst} (I)= \texttt{beta}\]
</p>
<p>when normType=NORM_MINMAX (for dense arrays only). The optional mask specifies a sub-array to be normalized. This means that the norm or min-n-max are calculated over the sub-array, and then this sub-array is modified to be normalized. If you want to only use the mask to calculate the norm or min-max but modify the whole array, you can use norm and <a class="el" href="../../d3/d63/classcv_1_1Mat.html#adf88c60c5b4980e05bb556080916978b" title="Converts an array to another data type with optional scaling. ">Mat::convertTo</a>.</p>
<p>In case of sparse matrices, only the non-zero values are analyzed and transformed. Because of this, the range transformation for sparse matrices is not allowed since it can shift the zero level.</p>
<p>Possible usage with some positive example data: </p><div class="fragment"><div class="line">vector&lt;double&gt; positiveData = { 2.0, 8.0, 10.0 };</div><div class="line">vector&lt;double&gt; normalizedData_l1, normalizedData_l2, normalizedData_inf, normalizedData_minmax;</div><div class="line"></div><div class="line"><span class="comment">// Norm to probability (total count)</span></div><div class="line"><span class="comment">// sum(numbers) = 20.0</span></div><div class="line"><span class="comment">// 2.0      0.1     (2.0/20.0)</span></div><div class="line"><span class="comment">// 8.0      0.4     (8.0/20.0)</span></div><div class="line"><span class="comment">// 10.0     0.5     (10.0/20.0)</span></div><div class="line"><a class="code" href="../../dc/d84/group__core__basic.html#ga1b6a396a456c8b6c6e4afd8591560d80">normalize</a>(positiveData, normalizedData_l1, 1.0, 0.0, <a class="code" href="../../d2/de8/group__core__array.html#ggad12cefbcb5291cf958a85b4b67b6149fab55c78ff204a979026c026ea19de65c9">NORM_L1</a>);</div><div class="line"></div><div class="line"><span class="comment">// Norm to unit vector: ||positiveData|| = 1.0</span></div><div class="line"><span class="comment">// 2.0      0.15</span></div><div class="line"><span class="comment">// 8.0      0.62</span></div><div class="line"><span class="comment">// 10.0     0.77</span></div><div class="line"><a class="code" href="../../dc/d84/group__core__basic.html#ga1b6a396a456c8b6c6e4afd8591560d80">normalize</a>(positiveData, normalizedData_l2, 1.0, 0.0, <a class="code" href="../../d2/de8/group__core__array.html#ggad12cefbcb5291cf958a85b4b67b6149fa7bacbe84d400336a8f26297d8e80e3a2">NORM_L2</a>);</div><div class="line"></div><div class="line"><span class="comment">// Norm to max element</span></div><div class="line"><span class="comment">// 2.0      0.2     (2.0/10.0)</span></div><div class="line"><span class="comment">// 8.0      0.8     (8.0/10.0)</span></div><div class="line"><span class="comment">// 10.0     1.0     (10.0/10.0)</span></div><div class="line"><a class="code" href="../../dc/d84/group__core__basic.html#ga1b6a396a456c8b6c6e4afd8591560d80">normalize</a>(positiveData, normalizedData_inf, 1.0, 0.0, <a class="code" href="../../d2/de8/group__core__array.html#ggad12cefbcb5291cf958a85b4b67b6149fad33872d928c74f8a49d1ba06d72aefc3">NORM_INF</a>);</div><div class="line"></div><div class="line"><span class="comment">// Norm to range [0.0;1.0]</span></div><div class="line"><span class="comment">// 2.0      0.0     (shift to left border)</span></div><div class="line"><span class="comment">// 8.0      0.75    (6.0/8.0)</span></div><div class="line"><span class="comment">// 10.0     1.0     (shift to right border)</span></div><div class="line"><a class="code" href="../../dc/d84/group__core__basic.html#ga1b6a396a456c8b6c6e4afd8591560d80">normalize</a>(positiveData, normalizedData_minmax, 1.0, 0.0, <a class="code" href="../../d2/de8/group__core__array.html#ggad12cefbcb5291cf958a85b4b67b6149fa9f0c1c342a18114d47b516a88e29822e">NORM_MINMAX</a>);</div></div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input array. </td></tr>
    <tr><td class="paramname">dst</td><td>output array of the same size as src . </td></tr>
    <tr><td class="paramname">alpha</td><td>norm value to normalize to or the lower range boundary in case of the range normalization. </td></tr>
    <tr><td class="paramname">beta</td><td>upper range boundary in case of the range normalization; it is not used for the norm normalization. </td></tr>
    <tr><td class="paramname">norm_type</td><td>normalization type (see <a class="el" href="../../d2/de8/group__core__array.html#gad12cefbcb5291cf958a85b4b67b6149f">cv::NormTypes</a>). </td></tr>
    <tr><td class="paramname">dtype</td><td>when negative, the output array has the same type as src; otherwise, it has the same number of channels as src and the depth =<a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga39f3412d63cac68d4f1d138ab52a6fc8">CV_MAT_DEPTH(dtype)</a>. </td></tr>
    <tr><td class="paramname">mask</td><td>optional operation mask. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../dc/d84/group__core__basic.html#ga4e556cb8ad35a643a1ea66e035711bb9">norm</a>, <a class="el" href="../../d3/d63/classcv_1_1Mat.html#adf88c60c5b4980e05bb556080916978b" title="Converts an array to another data type with optional scaling. ">Mat::convertTo</a>, <a class="el" href="../../dd/da9/classcv_1_1SparseMat.html#a577ea9bbc02ffcf195df6d96f9c9650c" title="multiplies all the matrix elements by the specified scale factor alpha and converts the results to th...">SparseMat::convertTo</a> </dd></dl>
</div>
</div>
<a id="ga7bcf47a1df78cf575162e0aed44960cb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7bcf47a1df78cf575162e0aed44960cb">◆ </a></span>normalize() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::normalize </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../dd/da9/classcv_1_1SparseMat.html">SparseMat</a> &amp; </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dd/da9/classcv_1_1SparseMat.html">SparseMat</a> &amp; </td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>alpha</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>normType</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.normalize(</td><td class="paramname">src, dst[, alpha[, beta[, norm_type[, dtype[, mask]]]]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input array. </td></tr>
    <tr><td class="paramname">dst</td><td>output array of the same size as src . </td></tr>
    <tr><td class="paramname">alpha</td><td>norm value to normalize to or the lower range boundary in case of the range normalization. </td></tr>
    <tr><td class="paramname">normType</td><td>normalization type (see <a class="el" href="../../d2/de8/group__core__array.html#gad12cefbcb5291cf958a85b4b67b6149f">cv::NormTypes</a>). </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="ga62286befb7cde3568ff8c7d14d5079da"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga62286befb7cde3568ff8c7d14d5079da">◆ </a></span>patchNaNs()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::patchNaNs </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> </td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>val</em> = <code>0</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>a</td><td>=</td><td>cv.patchNaNs(</td><td class="paramname">a[, val]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>converts NaNs to the given number </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">a</td><td>input/output matrix (CV_32F type). </td></tr>
    <tr><td class="paramname">val</td><td>value to convert the NaNs </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="gab26049f30ee8e94f7d69d82c124faafc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab26049f30ee8e94f7d69d82c124faafc">◆ </a></span>PCABackProject()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::PCABackProject </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>mean</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>eigenvectors</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>result</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>result</td><td>=</td><td>cv.PCABackProject(</td><td class="paramname">data, mean, eigenvectors[, result]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>wrap <a class="el" href="../../d3/d8d/classcv_1_1PCA.html#a5f84cfbdb25b9833cc1bfb5bd484ea79" title="Reconstructs vectors from their PC projections. ">PCA::backProject</a> </p>
</div>
</div>
<a id="ga4e2073c7311f292a0648f04c37b73781"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga4e2073c7311f292a0648f04c37b73781">◆ </a></span>PCACompute() <span class="overload">[1/4]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::PCACompute </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> </td>
          <td class="paramname"><em>mean</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>eigenvectors</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>maxComponents</em> = <code>0</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>mean, eigenvectors</td><td>=</td><td>cv.PCACompute(</td><td class="paramname">data, mean[, eigenvectors[, maxComponents]]</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>mean, eigenvectors</td><td>=</td><td>cv.PCACompute(</td><td class="paramname">data, mean, retainedVariance[, eigenvectors]</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>mean, eigenvectors, eigenvalues</td><td>=</td><td>cv.PCACompute2(</td><td class="paramname">data, mean[, eigenvectors[, eigenvalues[, maxComponents]]]</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>mean, eigenvectors, eigenvalues</td><td>=</td><td>cv.PCACompute2(</td><td class="paramname">data, mean, retainedVariance[, eigenvectors[, eigenvalues]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>wrap PCA::operator() </p>
</div>
</div>
<a id="ga27a565b31d820b05dcbcd47112176b6e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga27a565b31d820b05dcbcd47112176b6e">◆ </a></span>PCACompute() <span class="overload">[2/4]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::PCACompute </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> </td>
          <td class="paramname"><em>mean</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>eigenvectors</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>eigenvalues</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>maxComponents</em> = <code>0</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>mean, eigenvectors</td><td>=</td><td>cv.PCACompute(</td><td class="paramname">data, mean[, eigenvectors[, maxComponents]]</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>mean, eigenvectors</td><td>=</td><td>cv.PCACompute(</td><td class="paramname">data, mean, retainedVariance[, eigenvectors]</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>mean, eigenvectors, eigenvalues</td><td>=</td><td>cv.PCACompute2(</td><td class="paramname">data, mean[, eigenvectors[, eigenvalues[, maxComponents]]]</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>mean, eigenvectors, eigenvalues</td><td>=</td><td>cv.PCACompute2(</td><td class="paramname">data, mean, retainedVariance[, eigenvectors[, eigenvalues]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>wrap PCA::operator() and add eigenvalues output parameter </p>
</div>
</div>
<a id="ga0ad1147fbcdb256f2e14ae2bfb8c991d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0ad1147fbcdb256f2e14ae2bfb8c991d">◆ </a></span>PCACompute() <span class="overload">[3/4]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::PCACompute </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> </td>
          <td class="paramname"><em>mean</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>eigenvectors</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>retainedVariance</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>mean, eigenvectors</td><td>=</td><td>cv.PCACompute(</td><td class="paramname">data, mean[, eigenvectors[, maxComponents]]</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>mean, eigenvectors</td><td>=</td><td>cv.PCACompute(</td><td class="paramname">data, mean, retainedVariance[, eigenvectors]</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>mean, eigenvectors, eigenvalues</td><td>=</td><td>cv.PCACompute2(</td><td class="paramname">data, mean[, eigenvectors[, eigenvalues[, maxComponents]]]</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>mean, eigenvectors, eigenvalues</td><td>=</td><td>cv.PCACompute2(</td><td class="paramname">data, mean, retainedVariance[, eigenvectors[, eigenvalues]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>wrap PCA::operator() </p>
</div>
</div>
<a id="gaa928ce9ac86ffc12b7fae3a22a3aa308"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa928ce9ac86ffc12b7fae3a22a3aa308">◆ </a></span>PCACompute() <span class="overload">[4/4]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::PCACompute </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> </td>
          <td class="paramname"><em>mean</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>eigenvectors</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>eigenvalues</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>retainedVariance</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>mean, eigenvectors</td><td>=</td><td>cv.PCACompute(</td><td class="paramname">data, mean[, eigenvectors[, maxComponents]]</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>mean, eigenvectors</td><td>=</td><td>cv.PCACompute(</td><td class="paramname">data, mean, retainedVariance[, eigenvectors]</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>mean, eigenvectors, eigenvalues</td><td>=</td><td>cv.PCACompute2(</td><td class="paramname">data, mean[, eigenvectors[, eigenvalues[, maxComponents]]]</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>mean, eigenvectors, eigenvalues</td><td>=</td><td>cv.PCACompute2(</td><td class="paramname">data, mean, retainedVariance[, eigenvectors[, eigenvalues]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>wrap PCA::operator() and add eigenvalues output parameter </p>
</div>
</div>
<a id="ga6b9fbc7b3a99ebfd441bbec0a6bc4f88"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6b9fbc7b3a99ebfd441bbec0a6bc4f88">◆ </a></span>PCAProject()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::PCAProject </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>mean</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>eigenvectors</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>result</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>result</td><td>=</td><td>cv.PCAProject(</td><td class="paramname">data, mean, eigenvectors[, result]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>wrap <a class="el" href="../../d3/d8d/classcv_1_1PCA.html#a67c9a3f8fe804f40be58c88a3ae73f41" title="Projects vector(s) to the principal component subspace. ">PCA::project</a> </p>
</div>
</div>
<a id="gad327659ac03e5fd6894b90025e6900a7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad327659ac03e5fd6894b90025e6900a7">◆ </a></span>perspectiveTransform()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::perspectiveTransform </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>m</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.perspectiveTransform(</td><td class="paramname">src, m[, dst]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Performs the perspective matrix transformation of vectors. </p>
<p>The function <a class="el" href="../../d2/de8/group__core__array.html#gad327659ac03e5fd6894b90025e6900a7" title="Performs the perspective matrix transformation of vectors. ">cv::perspectiveTransform</a> transforms every element of src by treating it as a 2D or 3D vector, in the following way: </p><p class="formulaDsp">
\[(x, y, z) \rightarrow (x'/w, y'/w, z'/w)\]
</p>
<p> where </p><p class="formulaDsp">
\[(x', y', z', w') = \texttt{mat} \cdot \begin{bmatrix} x &amp; y &amp; z &amp; 1 \end{bmatrix}\]
</p>
<p> and </p><p class="formulaDsp">
\[w = \fork{w'}{if \(w' \ne 0\)}{\infty}{otherwise}\]
</p>
<p>Here a 3D vector transformation is shown. In case of a 2D vector transformation, the z component is omitted.</p>
<dl class="section note"><dt>Note</dt><dd>The function transforms a sparse set of 2D or 3D vectors. If you want to transform an image using perspective transformation, use warpPerspective . If you have an inverse problem, that is, you want to compute the most probable perspective transformation out of several pairs of corresponding points, you can use getPerspectiveTransform or findHomography . </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input two-channel or three-channel floating-point array; each element is a 2D/3D vector to be transformed. </td></tr>
    <tr><td class="paramname">dst</td><td>output array of the same size and type as src. </td></tr>
    <tr><td class="paramname">m</td><td>3x3 or 4x4 floating-point transformation matrix. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d2/de8/group__core__array.html#ga393164aa54bb9169ce0a8cc44e08ff22" title="Performs the matrix transformation of every array element. ">transform</a>, <a class="el" href="../../da/d54/group__imgproc__transform.html#gaf73673a7e8e18ec6963e3774e6a94b87" title="Applies a perspective transformation to an image. ">warpPerspective</a>, <a class="el" href="../../da/d54/group__imgproc__transform.html#ga20f62aa3235d869c9956436c870893ae" title="Calculates a perspective transform from four pairs of the corresponding points. ">getPerspectiveTransform</a>, <a class="el" href="../../d9/d0c/group__calib3d.html#ga4abc2ece9fab9398f2e560d53c8c9780" title="Finds a perspective transformation between two planes. ">findHomography</a> </dd></dl>
</div>
</div>
<a id="ga9db9ca9b4d81c3bde5677b8f64dc0137"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9db9ca9b4d81c3bde5677b8f64dc0137">◆ </a></span>phase()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::phase </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>angle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool </td>
          <td class="paramname"><em>angleInDegrees</em> = <code>false</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>angle</td><td>=</td><td>cv.phase(</td><td class="paramname">x, y[, angle[, angleInDegrees]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Calculates the rotation angle of 2D vectors. </p>
<p>The function <a class="el" href="../../d2/de8/group__core__array.html#ga9db9ca9b4d81c3bde5677b8f64dc0137" title="Calculates the rotation angle of 2D vectors. ">cv::phase</a> calculates the rotation angle of each 2D vector that is formed from the corresponding elements of x and y : </p><p class="formulaDsp">
\[\texttt{angle} (I) = \texttt{atan2} ( \texttt{y} (I), \texttt{x} (I))\]
</p>
<p>The angle estimation accuracy is about 0.3 degrees. When x(I)=y(I)=0 , the corresponding angle(I) is set to 0. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>input floating-point array of x-coordinates of 2D vectors. </td></tr>
    <tr><td class="paramname">y</td><td>input array of y-coordinates of 2D vectors; it must have the same size and the same type as x. </td></tr>
    <tr><td class="paramname">angle</td><td>output array of vector angles; it has the same size and same type as x . </td></tr>
    <tr><td class="paramname">angleInDegrees</td><td>when true, the function calculates the angle in degrees, otherwise, they are measured in radians. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="ga581ff9d44201de2dd1b40a50db93d665"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga581ff9d44201de2dd1b40a50db93d665">◆ </a></span>polarToCart()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::polarToCart </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>magnitude</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>angle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool </td>
          <td class="paramname"><em>angleInDegrees</em> = <code>false</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>x, y</td><td>=</td><td>cv.polarToCart(</td><td class="paramname">magnitude, angle[, x[, y[, angleInDegrees]]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Calculates x and y coordinates of 2D vectors from their magnitude and angle. </p>
<p>The function <a class="el" href="../../d2/de8/group__core__array.html#ga581ff9d44201de2dd1b40a50db93d665" title="Calculates x and y coordinates of 2D vectors from their magnitude and angle. ">cv::polarToCart</a> calculates the Cartesian coordinates of each 2D vector represented by the corresponding elements of magnitude and angle: </p><p class="formulaDsp">
\[\begin{array}{l} \texttt{x} (I) = \texttt{magnitude} (I) \cos ( \texttt{angle} (I)) \\ \texttt{y} (I) = \texttt{magnitude} (I) \sin ( \texttt{angle} (I)) \\ \end{array}\]
</p>
<p>The relative accuracy of the estimated coordinates is about 1e-6. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">magnitude</td><td>input floating-point array of magnitudes of 2D vectors; it can be an empty matrix (=Mat()), in this case, the function assumes that all the magnitudes are =1; if it is not empty, it must have the same size and type as angle. </td></tr>
    <tr><td class="paramname">angle</td><td>input floating-point array of angles of 2D vectors. </td></tr>
    <tr><td class="paramname">x</td><td>output array of x-coordinates of 2D vectors; it has the same size and type as angle. </td></tr>
    <tr><td class="paramname">y</td><td>output array of y-coordinates of 2D vectors; it has the same size and type as angle. </td></tr>
    <tr><td class="paramname">angleInDegrees</td><td>when true, the input angles are measured in degrees, otherwise, they are measured in radians. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d2/de8/group__core__array.html#gac5f92f48ec32cacf5275969c33ee837d" title="Calculates the magnitude and angle of 2D vectors. ">cartToPolar</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga6d3b097586bca4409873d64a90fe64c3" title="Calculates the magnitude of 2D vectors. ">magnitude</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga9db9ca9b4d81c3bde5677b8f64dc0137" title="Calculates the rotation angle of 2D vectors. ">phase</a>, <a class="el" href="../../d0/de1/group__core.html#ga96ff82d32417d677722a7e786425c98e">exp</a>, <a class="el" href="../../d0/de1/group__core.html#ga4eba02a849f926ee1764acde47108753">log</a>, <a class="el" href="../../d7/dcc/group__core__utils__softfloat.html#ga8bc36646a43b82baa15f151a973fb0c5" title="Raising to the power. ">pow</a>, <a class="el" href="../../d0/de1/group__core.html#ga9070b6a3f093dd952d973819b06f4906">sqrt</a> </dd></dl>
</div>
</div>
<a id="gaf0d056b5bd1dc92500d6f6cf6bac41ef"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf0d056b5bd1dc92500d6f6cf6bac41ef">◆ </a></span>pow()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::pow </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>power</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.pow(</td><td class="paramname">src, power[, dst]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Raises every array element to a power. </p>
<p>The function <a class="el" href="../../d7/dcc/group__core__utils__softfloat.html#ga8bc36646a43b82baa15f151a973fb0c5" title="Raising to the power. ">cv::pow</a> raises every element of the input array to power : </p><p class="formulaDsp">
\[\texttt{dst} (I) = \fork{\texttt{src}(I)^{power}}{if \(\texttt{power}\) is integer}{|\texttt{src}(I)|^{power}}{otherwise}\]
</p>
<p>So, for a non-integer power exponent, the absolute values of input array elements are used. However, it is possible to get true values for negative values using some extra operations. In the example below, computing the 5th root of array src shows: </p><div class="fragment"><div class="line">Mat mask = src &lt; 0;</div><div class="line"><a class="code" href="../../d7/dcc/group__core__utils__softfloat.html#ga8bc36646a43b82baa15f151a973fb0c5">pow</a>(src, 1./5, dst);</div><div class="line"><a class="code" href="../../d2/de8/group__core__array.html#gaa0f00d98b4b5edeaeb7b8333b2de353b">subtract</a>(<a class="code" href="../../d1/da0/classcv_1_1Scalar__.html#ac1509a4b8454fe7fe29db069e13a2e6f">Scalar::all</a>(0), dst, dst, mask);</div></div><!-- fragment --><p> For some values of power, such as integer values, 0.5 and -0.5, specialized faster algorithms are used.</p>
<p>Special values (NaN, Inf) are not handled. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input array. </td></tr>
    <tr><td class="paramname">power</td><td>exponent of power. </td></tr>
    <tr><td class="paramname">dst</td><td>output array of the same size and type as src. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d0/de1/group__core.html#ga9070b6a3f093dd952d973819b06f4906">sqrt</a>, <a class="el" href="../../d0/de1/group__core.html#ga96ff82d32417d677722a7e786425c98e">exp</a>, <a class="el" href="../../d0/de1/group__core.html#ga4eba02a849f926ee1764acde47108753">log</a>, <a class="el" href="../../d2/de8/group__core__array.html#gac5f92f48ec32cacf5275969c33ee837d" title="Calculates the magnitude and angle of 2D vectors. ">cartToPolar</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga581ff9d44201de2dd1b40a50db93d665" title="Calculates x and y coordinates of 2D vectors from their magnitude and angle. ">polarToCart</a> </dd></dl>
</div>
</div>
<a id="ga3119e3ea73010a6f810bb05aa36ac8d6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga3119e3ea73010a6f810bb05aa36ac8d6">◆ </a></span>PSNR()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double cv::PSNR </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>R</em> = <code>255.</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.PSNR(</td><td class="paramname">src1, src2[, R]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Computes the Peak Signal-to-Noise Ratio (PSNR) image quality metric. </p>
<p>This function calculates the Peak Signal-to-Noise Ratio (PSNR) image quality metric in decibels (dB), between two input arrays src1 and src2. The arrays must have the same type.</p>
<p>The PSNR is calculated as follows:</p>
<p class="formulaDsp">
\[ \texttt{PSNR} = 10 \cdot \log_{10}{\left( \frac{R^2}{MSE} \right) } \]
</p>
<p>where R is the maximum integer value of depth (e.g. 255 in the case of CV_8U data) and MSE is the mean squared error between the two arrays.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src1</td><td>first input array. </td></tr>
    <tr><td class="paramname">src2</td><td>second input array of the same size as src1. </td></tr>
    <tr><td class="paramname">R</td><td>the maximum pixel value (255 by default) </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="gaeff1f61e972d133a04ce3a5f81cf6808"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaeff1f61e972d133a04ce3a5f81cf6808">◆ </a></span>randn()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::randn </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> </td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>mean</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>stddev</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.randn(</td><td class="paramname">dst, mean, stddev</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Fills the array with normally distributed random numbers. </p>
<p>The function <a class="el" href="../../d2/de8/group__core__array.html#gaeff1f61e972d133a04ce3a5f81cf6808" title="Fills the array with normally distributed random numbers. ">cv::randn</a> fills the matrix dst with normally distributed random numbers with the specified mean vector and the standard deviation matrix. The generated random numbers are clipped to fit the value range of the output array data type. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dst</td><td>output array of random numbers; the array must be pre-allocated and have 1 to 4 channels. </td></tr>
    <tr><td class="paramname">mean</td><td>mean value (expectation) of the generated random numbers. </td></tr>
    <tr><td class="paramname">stddev</td><td>standard deviation of the generated random numbers; it can be either a vector (in which case a diagonal standard deviation matrix is assumed) or a square matrix. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d1/dd6/classcv_1_1RNG.html" title="Random Number Generator. ">RNG</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga1ba1026dca0807b27057ba6a49d258c0" title="Generates a single uniformly-distributed random number or an array of random numbers. ">randu</a> </dd></dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../de/d70/samples_2cpp_2kalman_8cpp-example.html#a10">samples/cpp/kalman.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="ga6a789c8a5cb56c6dd62506179808f763"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6a789c8a5cb56c6dd62506179808f763">◆ </a></span>randShuffle()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::randShuffle </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> </td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>iterFactor</em> = <code>1.</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d1/dd6/classcv_1_1RNG.html">RNG</a> * </td>
          <td class="paramname"><em>rng</em> = <code>0</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.randShuffle(</td><td class="paramname">dst[, iterFactor]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Shuffles the array elements randomly. </p>
<p>The function <a class="el" href="../../d2/de8/group__core__array.html#ga6a789c8a5cb56c6dd62506179808f763" title="Shuffles the array elements randomly. ">cv::randShuffle</a> shuffles the specified 1D array by randomly choosing pairs of elements and swapping them. The number of such swap operations will be dst.rows*dst.cols*iterFactor . </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dst</td><td>input/output numerical 1D array. </td></tr>
    <tr><td class="paramname">iterFactor</td><td>scale factor that determines the number of random swap operations (see the details below). </td></tr>
    <tr><td class="paramname">rng</td><td>optional random number generator used for shuffling; if it is zero, theRNG () is used instead. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d1/dd6/classcv_1_1RNG.html" title="Random Number Generator. ">RNG</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga45dd56da289494ce874be2324856898f" title="Sorts each row or each column of a matrix. ">sort</a> </dd></dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../d0/d38/modules_2shape_2samples_2shape_example_8cpp-example.html#a5">modules/shape/samples/shape_example.cpp</a>, and <a class="el" href="../../d9/dde/samples_2cpp_2kmeans_8cpp-example.html#a16">samples/cpp/kmeans.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="ga1ba1026dca0807b27057ba6a49d258c0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga1ba1026dca0807b27057ba6a49d258c0">◆ </a></span>randu()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::randu </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> </td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>low</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>high</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.randu(</td><td class="paramname">dst, low, high</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Generates a single uniformly-distributed random number or an array of random numbers. </p>
<p>Non-template variant of the function fills the matrix dst with uniformly-distributed random numbers from the specified range: </p><p class="formulaDsp">
\[\texttt{low} _c \leq \texttt{dst} (I)_c &lt; \texttt{high} _c\]
</p>
 <dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dst</td><td>output array of random numbers; the array must be pre-allocated. </td></tr>
    <tr><td class="paramname">low</td><td>inclusive lower boundary of the generated random numbers. </td></tr>
    <tr><td class="paramname">high</td><td>exclusive upper boundary of the generated random numbers. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d1/dd6/classcv_1_1RNG.html" title="Random Number Generator. ">RNG</a>, <a class="el" href="../../d2/de8/group__core__array.html#gaeff1f61e972d133a04ce3a5f81cf6808" title="Fills the array with normally distributed random numbers. ">randn</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga75843061d150ad6564b5447e38e57722" title="Returns the default random number generator. ">theRNG</a> </dd></dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../d9/d15/samples_2cpp_2cout_mat_8cpp-example.html#a7">samples/cpp/cout_mat.cpp</a>, and <a class="el" href="../../d2/dcf/samples_2cpp_2falsecolor_8cpp-example.html#a3">samples/cpp/falsecolor.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="ga4b78072a303f29d9031d56e5638da78e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga4b78072a303f29d9031d56e5638da78e">◆ </a></span>reduce()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::reduce </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>dim</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>rtype</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>dtype</em> = <code>-1</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.reduce(</td><td class="paramname">src, dim, rtype[, dst[, dtype]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Reduces a matrix to a vector. </p>
<p>The function <a class="el" href="../../d2/de8/group__core__array.html#ga4b78072a303f29d9031d56e5638da78e" title="Reduces a matrix to a vector. ">reduce</a> reduces the matrix to a vector by treating the matrix rows/columns as a set of 1D vectors and performing the specified operation on the vectors until a single row/column is obtained. For example, the function can be used to compute horizontal and vertical projections of a raster image. In case of <a class="el" href="../../d2/de8/group__core__array.html#gga14cdedf2933367eb9395ec16798af994a928b4c3eb0a038ea41b61d122c0495ee" title="the output is the maximum (column/row-wise) of all rows/columns of the matrix. ">REDUCE_MAX</a> and <a class="el" href="../../d2/de8/group__core__array.html#gga14cdedf2933367eb9395ec16798af994a1f40a2ed66c8a8b8198186da47ec7b76" title="the output is the minimum (column/row-wise) of all rows/columns of the matrix. ">REDUCE_MIN</a> , the output image should have the same type as the source one. In case of <a class="el" href="../../d2/de8/group__core__array.html#gga14cdedf2933367eb9395ec16798af994a101441e283ed69f20cfc5468114f9867" title="the output is the sum of all rows/columns of the matrix. ">REDUCE_SUM</a> and <a class="el" href="../../d2/de8/group__core__array.html#gga14cdedf2933367eb9395ec16798af994a85f039992a454ca367bc190529766c7e" title="the output is the mean vector of all rows/columns of the matrix. ">REDUCE_AVG</a> , the output may have a larger element bit-depth to preserve accuracy. And multi-channel arrays are also supported in these two reduction modes.</p>
<p>The following code demonstrates its usage for a single channel matrix. </p><div class="fragment"><div class="line">        Mat m = (Mat_&lt;uchar&gt;(3,2) &lt;&lt; 1,2,3,4,5,6);</div><div class="line">        Mat col_sum, row_sum;</div><div class="line"></div><div class="line">        <a class="code" href="../../d2/de8/group__core__array.html#ga4b78072a303f29d9031d56e5638da78e">reduce</a>(m, col_sum, 0, <a class="code" href="../../d2/de8/group__core__array.html#gga14cdedf2933367eb9395ec16798af994a101441e283ed69f20cfc5468114f9867">REDUCE_SUM</a>, <a class="code" href="../../d1/d1b/group__core__hal__interface.html#ga4a3def5d72b74bed31f5f8ab7676099c">CV_32F</a>);</div><div class="line">        <a class="code" href="../../d2/de8/group__core__array.html#ga4b78072a303f29d9031d56e5638da78e">reduce</a>(m, row_sum, 1, <a class="code" href="../../d2/de8/group__core__array.html#gga14cdedf2933367eb9395ec16798af994a101441e283ed69f20cfc5468114f9867">REDUCE_SUM</a>, <a class="code" href="../../d1/d1b/group__core__hal__interface.html#ga4a3def5d72b74bed31f5f8ab7676099c">CV_32F</a>);</div><div class="line">        <span class="comment">/*</span></div><div class="line"><span class="comment">        m =</span></div><div class="line"><span class="comment">        [  1,   2;</span></div><div class="line"><span class="comment">           3,   4;</span></div><div class="line"><span class="comment">           5,   6]</span></div><div class="line"><span class="comment">        col_sum =</span></div><div class="line"><span class="comment">        [9, 12]</span></div><div class="line"><span class="comment">        row_sum =</span></div><div class="line"><span class="comment">        [3;</span></div><div class="line"><span class="comment">         7;</span></div><div class="line"><span class="comment">         11]</span></div><div class="line"><span class="comment">         */</span></div></div><!-- fragment --><p> And the following code demonstrates its usage for a two-channel matrix. </p><div class="fragment"><div class="line">        <span class="comment">// two channels</span></div><div class="line">        <span class="keywordtype">char</span> d[] = {1,2,3,4,5,6};</div><div class="line">        Mat m(3, 1, <a class="code" href="../../d1/d1b/group__core__hal__interface.html#ga3cb9fe9fa9bc4989f5a89035e2a994e3">CV_8UC2</a>, d);</div><div class="line">        Mat col_sum_per_channel;</div><div class="line">        <a class="code" href="../../d2/de8/group__core__array.html#ga4b78072a303f29d9031d56e5638da78e">reduce</a>(m, col_sum_per_channel, 0, <a class="code" href="../../d2/de8/group__core__array.html#gga14cdedf2933367eb9395ec16798af994a101441e283ed69f20cfc5468114f9867">REDUCE_SUM</a>, <a class="code" href="../../d1/d1b/group__core__hal__interface.html#ga4a3def5d72b74bed31f5f8ab7676099c">CV_32F</a>);</div><div class="line">        <span class="comment">/*</span></div><div class="line"><span class="comment">        col_sum_per_channel =</span></div><div class="line"><span class="comment">        [9, 12]</span></div><div class="line"><span class="comment">        */</span></div></div><!-- fragment --> <dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input 2D matrix. </td></tr>
    <tr><td class="paramname">dst</td><td>output vector. Its size and type is defined by dim and dtype parameters. </td></tr>
    <tr><td class="paramname">dim</td><td>dimension index along which the matrix is reduced. 0 means that the matrix is reduced to a single row. 1 means that the matrix is reduced to a single column. </td></tr>
    <tr><td class="paramname">rtype</td><td>reduction operation that could be one of <a class="el" href="../../d2/de8/group__core__array.html#ga14cdedf2933367eb9395ec16798af994">ReduceTypes</a> </td></tr>
    <tr><td class="paramname">dtype</td><td>when negative, the output vector will have the same type as the input matrix, otherwise, its type will be CV_MAKE_TYPE(<a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga39f3412d63cac68d4f1d138ab52a6fc8">CV_MAT_DEPTH(dtype)</a>, src.channels()). </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d2/de8/group__core__array.html#ga496c3860f3ac44c40b48811333cfda2d" title="Fills the output array with repeated copies of the input array. ">repeat</a> </dd></dl>
</div>
</div>
<a id="ga496c3860f3ac44c40b48811333cfda2d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga496c3860f3ac44c40b48811333cfda2d">◆ </a></span>repeat() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::repeat </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>ny</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>nx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.repeat(</td><td class="paramname">src, ny, nx[, dst]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Fills the output array with repeated copies of the input array. </p>
<p>The function <a class="el" href="../../d2/de8/group__core__array.html#ga496c3860f3ac44c40b48811333cfda2d" title="Fills the output array with repeated copies of the input array. ">cv::repeat</a> duplicates the input array one or more times along each of the two axes: </p><p class="formulaDsp">
\[\texttt{dst} _{ij}= \texttt{src} _{i\mod src.rows, \; j\mod src.cols }\]
</p>
<p> The second variant of the function is more convenient to use with <a class="el" href="../../d1/d10/classcv_1_1MatExpr.html#MatrixExpressions">MatrixExpressions</a>. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input array to replicate. </td></tr>
    <tr><td class="paramname">ny</td><td>Flag to specify how many times the <code>src</code> is repeated along the vertical axis. </td></tr>
    <tr><td class="paramname">nx</td><td>Flag to specify how many times the <code>src</code> is repeated along the horizontal axis. </td></tr>
    <tr><td class="paramname">dst</td><td>output array of the same type as <code>src</code>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d2/de8/group__core__array.html#ga4b78072a303f29d9031d56e5638da78e" title="Reduces a matrix to a vector. ">cv::reduce</a> </dd></dl>
</div>
</div>
<a id="ga8e9c4ef56a85c58332c63997c10a51d8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga8e9c4ef56a85c58332c63997c10a51d8">◆ </a></span>repeat() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> cv::repeat </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp; </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>ny</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>nx</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.repeat(</td><td class="paramname">src, ny, nx[, dst]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input array to replicate. </td></tr>
    <tr><td class="paramname">ny</td><td>Flag to specify how many times the <code>src</code> is repeated along the vertical axis. </td></tr>
    <tr><td class="paramname">nx</td><td>Flag to specify how many times the <code>src</code> is repeated along the horizontal axis. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="ga4ad01c0978b0ce64baa246811deeac24"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga4ad01c0978b0ce64baa246811deeac24">◆ </a></span>rotate()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::rotate </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>rotateCode</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.rotate(</td><td class="paramname">src, rotateCode[, dst]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Rotates a 2D array in multiples of 90 degrees. The function <a class="el" href="../../d2/de8/group__core__array.html#ga4ad01c0978b0ce64baa246811deeac24" title="Rotates a 2D array in multiples of 90 degrees. The function cv::rotate rotates the array in one of th...">cv::rotate</a> rotates the array in one of three different ways: Rotate by 90 degrees clockwise (rotateCode = ROTATE_90_CLOCKWISE). Rotate by 180 degrees clockwise (rotateCode = ROTATE_180). Rotate by 270 degrees clockwise (rotateCode = ROTATE_90_COUNTERCLOCKWISE). </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input array. </td></tr>
    <tr><td class="paramname">dst</td><td>output array of the same type as src. The size is the same with ROTATE_180, and the rows and cols are switched for ROTATE_90_CLOCKWISE and ROTATE_90_COUNTERCLOCKWISE. </td></tr>
    <tr><td class="paramname">rotateCode</td><td>an enum to specify how to rotate the array; see the enum <a class="el" href="../../d2/de8/group__core__array.html#ga6f45d55c0b1cc9d97f5353a7c8a7aac2">RotateFlags</a> </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d2/de8/group__core__array.html#ga46630ed6c0ea6254a35f447289bd7404" title="Transposes a matrix. ">transpose</a> , <a class="el" href="../../d2/de8/group__core__array.html#ga496c3860f3ac44c40b48811333cfda2d" title="Fills the output array with repeated copies of the input array. ">repeat</a> , <a class="el" href="../../d2/de8/group__core__array.html#ga6847337c0c55769e115a70e0f011b5ca" title="Copies the lower or the upper half of a square matrix to its another half. ">completeSymm</a>, <a class="el" href="../../d2/de8/group__core__array.html#gaca7be533e3dac7feb70fc60635adf441" title="Flips a 2D array around vertical, horizontal, or both axes. ">flip</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga6f45d55c0b1cc9d97f5353a7c8a7aac2">RotateFlags</a> </dd></dl>
</div>
</div>
<a id="ga9e0845db4135f55dcf20227402f00d98"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9e0845db4135f55dcf20227402f00d98">◆ </a></span>scaleAdd()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::scaleAdd </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>alpha</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.scaleAdd(</td><td class="paramname">src1, alpha, src2[, dst]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Calculates the sum of a scaled array and another array. </p>
<p>The function scaleAdd is one of the classical primitive linear algebra operations, known as DAXPY or SAXPY in <a href="http://en.wikipedia.org/wiki/Basic_Linear_Algebra_Subprograms">BLAS</a>. It calculates the sum of a scaled array and another array: </p><p class="formulaDsp">
\[\texttt{dst} (I)= \texttt{scale} \cdot \texttt{src1} (I) + \texttt{src2} (I)\]
</p>
<p> The function can also be emulated with a matrix expression, for example: </p><div class="fragment"><div class="line">Mat A(3, 3, <a class="code" href="../../d1/d1b/group__core__hal__interface.html#ga30a562691cc5987bc88eb7bb7a8faf2b">CV_64F</a>);</div><div class="line">...</div><div class="line">A.row(0) = A.<a class="code" href="../../df/dfc/classcv_1_1Mat__.html#a957f24ad0e833a3a145499289331277e">row</a>(1)*2 + A.<a class="code" href="../../df/dfc/classcv_1_1Mat__.html#a957f24ad0e833a3a145499289331277e">row</a>(2);</div></div><!-- fragment --> <dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src1</td><td>first input array. </td></tr>
    <tr><td class="paramname">alpha</td><td>scale factor for the first array. </td></tr>
    <tr><td class="paramname">src2</td><td>second input array of the same size and type as src1. </td></tr>
    <tr><td class="paramname">dst</td><td>output array of the same size and type as src1. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d2/de8/group__core__array.html#ga10ac1bfb180e2cfda1701d06c24fdbd6" title="Calculates the per-element sum of two arrays or an array and a scalar. ">add</a>, <a class="el" href="../../d2/de8/group__core__array.html#gafafb2513349db3bcff51f54ee5592a19" title="Calculates the weighted sum of two arrays. ">addWeighted</a>, <a class="el" href="../../d2/de8/group__core__array.html#gaa0f00d98b4b5edeaeb7b8333b2de353b" title="Calculates the per-element difference between two arrays or array and a scalar. ">subtract</a>, <a class="el" href="../../d3/d63/classcv_1_1Mat.html#a0f683eab191eeece33dfc64ae299a9cb" title="Computes a dot-product of two vectors. ">Mat::dot</a>, <a class="el" href="../../d3/d63/classcv_1_1Mat.html#adf88c60c5b4980e05bb556080916978b" title="Converts an array to another data type with optional scaling. ">Mat::convertTo</a> </dd></dl>
</div>
</div>
<a id="ga388d7575224a4a277ceb98ccaa327c99"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga388d7575224a4a277ceb98ccaa327c99">◆ </a></span>setIdentity()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::setIdentity </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaf77c9a14ef956c50c1efd4547f444e63">InputOutputArray</a> </td>
          <td class="paramname"><em>mtx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> &amp; </td>
          <td class="paramname"><em>s</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a>(1)</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>mtx</td><td>=</td><td>cv.setIdentity(</td><td class="paramname">mtx[, s]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Initializes a scaled identity matrix. </p>
<p>The function <a class="el" href="../../d2/de8/group__core__array.html#ga388d7575224a4a277ceb98ccaa327c99" title="Initializes a scaled identity matrix. ">cv::setIdentity</a> initializes a scaled identity matrix: </p><p class="formulaDsp">
\[\texttt{mtx} (i,j)= \fork{\texttt{value}}{ if \(i=j\)}{0}{otherwise}\]
</p>
<p>The function can also be emulated using the matrix initializers and the matrix expressions: </p><div class="fragment"><div class="line">Mat A = <a class="code" href="../../d3/d63/classcv_1_1Mat.html#a2cf9b9acde7a9852542bbc20ef851ed2">Mat::eye</a>(4, 3, <a class="code" href="../../d1/d1b/group__core__hal__interface.html#ga4a3def5d72b74bed31f5f8ab7676099c">CV_32F</a>)*5;</div><div class="line"><span class="comment">// A will be set to [[5, 0, 0], [0, 5, 0], [0, 0, 5], [0, 0, 0]]</span></div></div><!-- fragment --> <dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">mtx</td><td>matrix to initialize (not necessarily square). </td></tr>
    <tr><td class="paramname">s</td><td>value to assign to diagonal elements. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d3/d63/classcv_1_1Mat.html#a0b57b6a326c8876d944d188a46e0f556" title="Returns a zero array of the specified size and type. ">Mat::zeros</a>, <a class="el" href="../../d3/d63/classcv_1_1Mat.html#a69ae0402d116fc9c71908d8508dc2f09" title="Returns an array of all 1's of the specified size and type. ">Mat::ones</a>, <a class="el" href="../../d3/d63/classcv_1_1Mat.html#a0440e2a164c0b0d8462fb1e487be9876" title="Sets all or some of the array elements to the specified value. ">Mat::setTo</a>, <a class="el" href="../../d3/d63/classcv_1_1Mat.html#aed1f81fe7efaacc2bd95149cdfa34302" title="assignment operators ">Mat::operator=</a> </dd></dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../de/d70/samples_2cpp_2kalman_8cpp-example.html#a14">samples/cpp/kalman.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="ga757e657c037410d9e19e819569e7de0f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga757e657c037410d9e19e819569e7de0f">◆ </a></span>setRNGSeed()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::setRNGSeed </td>
          <td>(</td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>seed</em></td><td>)</td>
          <td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.setRNGSeed(</td><td class="paramname">seed</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Sets state of default random number generator. </p>
<p>The function <a class="el" href="../../d2/de8/group__core__array.html#ga757e657c037410d9e19e819569e7de0f" title="Sets state of default random number generator. ">cv::setRNGSeed</a> sets state of default random number generator to custom value. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">seed</td><td>new state for default random number generator </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d1/dd6/classcv_1_1RNG.html" title="Random Number Generator. ">RNG</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga1ba1026dca0807b27057ba6a49d258c0" title="Generates a single uniformly-distributed random number or an array of random numbers. ">randu</a>, <a class="el" href="../../d2/de8/group__core__array.html#gaeff1f61e972d133a04ce3a5f81cf6808" title="Fills the array with normally distributed random numbers. ">randn</a> </dd></dl>
</div>
</div>
<a id="ga12b43690dbd31fed96f213eefead2373"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga12b43690dbd31fed96f213eefead2373">◆ </a></span>solve()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool cv::solve </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>flags</em> = <code><a class="el" href="../../d2/de8/group__core__array.html#ggaaf9ea5dcc392d5ae04eacb9920b9674ca247a3455cd64973152e17e26999dc024">DECOMP_LU</a></code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval, dst</td><td>=</td><td>cv.solve(</td><td class="paramname">src1, src2[, dst[, flags]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Solves one or more linear systems or least-squares problems. </p>
<p>The function <a class="el" href="../../d2/de8/group__core__array.html#ga12b43690dbd31fed96f213eefead2373" title="Solves one or more linear systems or least-squares problems. ">cv::solve</a> solves a linear system or least-squares problem (the latter is possible with <a class="el" href="../../df/df7/classcv_1_1SVD.html" title="Singular Value Decomposition. ">SVD</a> or QR methods, or by specifying the flag <a class="el" href="../../d2/de8/group__core__array.html#ggaaf9ea5dcc392d5ae04eacb9920b9674ca13eaae0241295166140291223db12166">DECOMP_NORMAL</a> ): </p><p class="formulaDsp">
\[\texttt{dst} = \arg \min _X \| \texttt{src1} \cdot \texttt{X} - \texttt{src2} \|\]
</p>
<p>If <a class="el" href="../../d2/de8/group__core__array.html#ggaaf9ea5dcc392d5ae04eacb9920b9674ca247a3455cd64973152e17e26999dc024">DECOMP_LU</a> or <a class="el" href="../../d2/de8/group__core__array.html#ggaaf9ea5dcc392d5ae04eacb9920b9674ca33cf860f98004310374a81d2c01715da">DECOMP_CHOLESKY</a> method is used, the function returns 1 if src1 (or \(\texttt{src1}^T\texttt{src1}\) ) is non-singular. Otherwise, it returns 0. In the latter case, dst is not valid. Other methods find a pseudo-solution in case of a singular left-hand side part.</p>
<dl class="section note"><dt>Note</dt><dd>If you want to find a unity-norm solution of an under-defined singular system \(\texttt{src1}\cdot\texttt{dst}=0\) , the function solve will not do the work. Use <a class="el" href="../../df/df7/classcv_1_1SVD.html#ab255cd24a882ab993fb2f7377ef2774a" title="solves an under-determined singular linear system ">SVD::solveZ</a> instead.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src1</td><td>input matrix on the left-hand side of the system. </td></tr>
    <tr><td class="paramname">src2</td><td>input matrix on the right-hand side of the system. </td></tr>
    <tr><td class="paramname">dst</td><td>output solution. </td></tr>
    <tr><td class="paramname">flags</td><td>solution (matrix inversion) method (<a class="el" href="../../d2/de8/group__core__array.html#gaaf9ea5dcc392d5ae04eacb9920b9674c" title="matrix decomposition types ">DecompTypes</a>) </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d2/de8/group__core__array.html#gad278044679d4ecf20f7622cc151aaaa2" title="Finds the inverse or pseudo-inverse of a matrix. ">invert</a>, <a class="el" href="../../df/df7/classcv_1_1SVD.html" title="Singular Value Decomposition. ">SVD</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga9fa0d58657f60eaa6c71f6fbb40456e3" title="Calculates eigenvalues and eigenvectors of a symmetric matrix. ">eigen</a> </dd></dl>
</div>
</div>
<a id="ga1c3b0b925b085b6e96931ee309e6a1da"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga1c3b0b925b085b6e96931ee309e6a1da">◆ </a></span>solveCubic()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int cv::solveCubic </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>coeffs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>roots</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval, roots</td><td>=</td><td>cv.solveCubic(</td><td class="paramname">coeffs[, roots]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Finds the real roots of a cubic equation. </p>
<p>The function solveCubic finds the real roots of a cubic equation:</p><ul>
<li>if coeffs is a 4-element vector: <p class="formulaDsp">
\[\texttt{coeffs} [0] x^3 + \texttt{coeffs} [1] x^2 + \texttt{coeffs} [2] x + \texttt{coeffs} [3] = 0\]
</p>
</li>
<li>if coeffs is a 3-element vector: <p class="formulaDsp">
\[x^3 + \texttt{coeffs} [0] x^2 + \texttt{coeffs} [1] x + \texttt{coeffs} [2] = 0\]
</p>
</li>
</ul>
<p>The roots are stored in the roots array. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">coeffs</td><td>equation coefficients, an array of 3 or 4 elements. </td></tr>
    <tr><td class="paramname">roots</td><td>output array of real roots that has 1 or 3 elements. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>number of real roots. It can be 0, 1 or 2. </dd></dl>
</div>
</div>
<a id="gac2f5e953016fabcdf793d762f4ec5dce"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac2f5e953016fabcdf793d762f4ec5dce">◆ </a></span>solvePoly()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double cv::solvePoly </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>coeffs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>roots</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>maxIters</em> = <code>300</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval, roots</td><td>=</td><td>cv.solvePoly(</td><td class="paramname">coeffs[, roots[, maxIters]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Finds the real or complex roots of a polynomial equation. </p>
<p>The function <a class="el" href="../../d2/de8/group__core__array.html#gac2f5e953016fabcdf793d762f4ec5dce" title="Finds the real or complex roots of a polynomial equation. ">cv::solvePoly</a> finds real and complex roots of a polynomial equation: </p><p class="formulaDsp">
\[\texttt{coeffs} [n] x^{n} + \texttt{coeffs} [n-1] x^{n-1} + ... + \texttt{coeffs} [1] x + \texttt{coeffs} [0] = 0\]
</p>
 <dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">coeffs</td><td>array of polynomial coefficients. </td></tr>
    <tr><td class="paramname">roots</td><td>output (complex) array of roots. </td></tr>
    <tr><td class="paramname">maxIters</td><td>maximum number of iterations the algorithm does. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="ga45dd56da289494ce874be2324856898f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga45dd56da289494ce874be2324856898f">◆ </a></span>sort()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::sort </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>flags</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.sort(</td><td class="paramname">src, flags[, dst]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Sorts each row or each column of a matrix. </p>
<p>The function <a class="el" href="../../d2/de8/group__core__array.html#ga45dd56da289494ce874be2324856898f" title="Sorts each row or each column of a matrix. ">cv::sort</a> sorts each matrix row or each matrix column in ascending or descending order. So you should pass two operation flags to get desired behaviour. If you want to sort matrix rows or columns lexicographically, you can use STL std::sort generic function with the proper comparison predicate.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input single-channel array. </td></tr>
    <tr><td class="paramname">dst</td><td>output array of the same size and type as src. </td></tr>
    <tr><td class="paramname">flags</td><td>operation flags, a combination of <a class="el" href="../../db/de0/group__core__utils.html#ga8e88a1f27e41e12f81caab17cf81667b">SortFlags</a> </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d2/de8/group__core__array.html#gadf35157cbf97f3cb85a545380e383506" title="Sorts each row or each column of a matrix. ">sortIdx</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga6a789c8a5cb56c6dd62506179808f763" title="Shuffles the array elements randomly. ">randShuffle</a> </dd></dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../d9/dd8/samples_2cpp_2stitching_detailed_8cpp-example.html#a24">samples/cpp/stitching_detailed.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="gadf35157cbf97f3cb85a545380e383506"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gadf35157cbf97f3cb85a545380e383506">◆ </a></span>sortIdx()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::sortIdx </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>flags</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.sortIdx(</td><td class="paramname">src, flags[, dst]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Sorts each row or each column of a matrix. </p>
<p>The function <a class="el" href="../../d2/de8/group__core__array.html#gadf35157cbf97f3cb85a545380e383506" title="Sorts each row or each column of a matrix. ">cv::sortIdx</a> sorts each matrix row or each matrix column in the ascending or descending order. So you should pass two operation flags to get desired behaviour. Instead of reordering the elements themselves, it stores the indices of sorted elements in the output array. For example: </p><div class="fragment"><div class="line">Mat A = <a class="code" href="../../d3/d63/classcv_1_1Mat.html#a2cf9b9acde7a9852542bbc20ef851ed2">Mat::eye</a>(3,3,<a class="code" href="../../d1/d1b/group__core__hal__interface.html#ga4a3def5d72b74bed31f5f8ab7676099c">CV_32F</a>), B;</div><div class="line"><a class="code" href="../../d2/de8/group__core__array.html#gadf35157cbf97f3cb85a545380e383506">sortIdx</a>(A, B, <a class="code" href="../../db/de0/group__core__utils.html#gga8e88a1f27e41e12f81caab17cf81667ba9776827c6c057260be34311392e6b618">SORT_EVERY_ROW</a> + <a class="code" href="../../db/de0/group__core__utils.html#gga8e88a1f27e41e12f81caab17cf81667ba62b054bb27aeefd25fb6728034b630a2">SORT_ASCENDING</a>);</div><div class="line"><span class="comment">// B will probably contain</span></div><div class="line"><span class="comment">// (because of equal elements in A some permutations are possible):</span></div><div class="line"><span class="comment">// [[1, 2, 0], [0, 2, 1], [0, 1, 2]]</span></div></div><!-- fragment --> <dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input single-channel array. </td></tr>
    <tr><td class="paramname">dst</td><td>output integer array of the same size as src. </td></tr>
    <tr><td class="paramname">flags</td><td>operation flags that could be a combination of <a class="el" href="../../db/de0/group__core__utils.html#ga8e88a1f27e41e12f81caab17cf81667b">cv::SortFlags</a> </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d2/de8/group__core__array.html#ga45dd56da289494ce874be2324856898f" title="Sorts each row or each column of a matrix. ">sort</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga6a789c8a5cb56c6dd62506179808f763" title="Shuffles the array elements randomly. ">randShuffle</a> </dd></dl>
</div>
</div>
<a id="ga0547c7fed86152d7e9d0096029c8518a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0547c7fed86152d7e9d0096029c8518a">◆ </a></span>split() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::split </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp; </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> * </td>
          <td class="paramname"><em>mvbegin</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>mv</td><td>=</td><td>cv.split(</td><td class="paramname">m[, mv]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Divides a multi-channel array into several single-channel arrays. </p>
<p>The function <a class="el" href="../../d2/de8/group__core__array.html#ga0547c7fed86152d7e9d0096029c8518a" title="Divides a multi-channel array into several single-channel arrays. ">cv::split</a> splits a multi-channel array into separate single-channel arrays: </p><p class="formulaDsp">
\[\texttt{mv} [c](I) = \texttt{src} (I)_c\]
</p>
<p> If you need to extract a single channel or do some other sophisticated channel permutation, use mixChannels .</p>
<p>The following example demonstrates how to split a 3-channel matrix into 3 single channel matrices. </p><div class="fragment"><div class="line">    <span class="keywordtype">char</span> d[] = {1,2,3,4,5,6,7,8,9,10,11,12};</div><div class="line">    Mat m(2, 2, <a class="code" href="../../d1/d1b/group__core__hal__interface.html#ga88c4cd9de76f678f33928ef1e3f96047">CV_8UC3</a>, d);</div><div class="line">    Mat channels[3];</div><div class="line">    <a class="code" href="../../d2/de8/group__core__array.html#ga0547c7fed86152d7e9d0096029c8518a">split</a>(m, channels);</div><div class="line"></div><div class="line">    <span class="comment">/*</span></div><div class="line"><span class="comment">    channels[0] =</span></div><div class="line"><span class="comment">    [  1,   4;</span></div><div class="line"><span class="comment">       7,  10]</span></div><div class="line"><span class="comment">    channels[1] =</span></div><div class="line"><span class="comment">    [  2,   5;</span></div><div class="line"><span class="comment">       8,  11]</span></div><div class="line"><span class="comment">    channels[2] =</span></div><div class="line"><span class="comment">    [  3,   6;</span></div><div class="line"><span class="comment">       9,  12]</span></div><div class="line"><span class="comment">    */</span></div></div><!-- fragment --> <dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input multi-channel array. </td></tr>
    <tr><td class="paramname">mvbegin</td><td>output array; the number of arrays must match src.channels(); the arrays themselves are reallocated, if needed. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d2/de8/group__core__array.html#ga7d7b4d6c6ee504b30a20b1680029c7b4" title="Creates one multi-channel array out of several single-channel ones. ">merge</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga51d768c270a1cdd3497255017c4504be" title="Copies specified channels from input arrays to the specified channels of output arrays. ">mixChannels</a>, <a class="el" href="../../d8/d01/group__imgproc__color__conversions.html#ga397ae87e1288a81d2363b61574eb8cab" title="Converts an image from one color space to another. ">cvtColor</a> </dd></dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../d3/d9c/samples_2cpp_2tutorial_code_2videoio_2video-write_2video-write_8cpp-example.html#a15">samples/cpp/tutorial_code/videoio/video-write/video-write.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="ga8027f9deee1e42716be8039e5863fbd9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga8027f9deee1e42716be8039e5863fbd9">◆ </a></span>split() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::split </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>m</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga889a09549b98223016170d9b613715de">OutputArrayOfArrays</a> </td>
          <td class="paramname"><em>mv</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>mv</td><td>=</td><td>cv.split(</td><td class="paramname">m[, mv]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">m</td><td>input multi-channel array. </td></tr>
    <tr><td class="paramname">mv</td><td>output vector of arrays; the arrays themselves are reallocated, if needed. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="ga186222c3919657890f88df5a1f64a7d7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga186222c3919657890f88df5a1f64a7d7">◆ </a></span>sqrt()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::sqrt </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.sqrt(</td><td class="paramname">src[, dst]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Calculates a square root of array elements. </p>
<p>The function <a class="el" href="../../d0/de1/group__core.html#ga9070b6a3f093dd952d973819b06f4906">cv::sqrt</a> calculates a square root of each input array element. In case of multi-channel arrays, each channel is processed independently. The accuracy is approximately the same as of the built-in std::sqrt . </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input floating-point array. </td></tr>
    <tr><td class="paramname">dst</td><td>output array of the same size and type as src. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="gaa0f00d98b4b5edeaeb7b8333b2de353b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa0f00d98b4b5edeaeb7b8333b2de353b">◆ </a></span>subtract()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::subtract </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>mask</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>()</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>dtype</em> = <code>-1</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.subtract(</td><td class="paramname">src1, src2[, dst[, mask[, dtype]]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Calculates the per-element difference between two arrays or array and a scalar. </p>
<p>The function subtract calculates:</p><ul>
<li>Difference between two arrays, when both input arrays have the same size and the same number of channels: <p class="formulaDsp">
\[\texttt{dst}(I) = \texttt{saturate} ( \texttt{src1}(I) - \texttt{src2}(I)) \quad \texttt{if mask}(I) \ne0\]
</p>
</li>
<li>Difference between an array and a scalar, when src2 is constructed from Scalar or has the same number of elements as <code>src1.channels()</code>: <p class="formulaDsp">
\[\texttt{dst}(I) = \texttt{saturate} ( \texttt{src1}(I) - \texttt{src2} ) \quad \texttt{if mask}(I) \ne0\]
</p>
</li>
<li>Difference between a scalar and an array, when src1 is constructed from Scalar or has the same number of elements as <code>src2.channels()</code>: <p class="formulaDsp">
\[\texttt{dst}(I) = \texttt{saturate} ( \texttt{src1} - \texttt{src2}(I) ) \quad \texttt{if mask}(I) \ne0\]
</p>
</li>
<li>The reverse difference between a scalar and an array in the case of <code>SubRS</code>: <p class="formulaDsp">
\[\texttt{dst}(I) = \texttt{saturate} ( \texttt{src2} - \texttt{src1}(I) ) \quad \texttt{if mask}(I) \ne0\]
</p>
 where I is a multi-dimensional index of array elements. In case of multi-channel arrays, each channel is processed independently.</li>
</ul>
<p>The first function in the list above can be replaced with matrix expressions: </p><div class="fragment"><div class="line">dst = src1 - src2;</div><div class="line">dst -= src1; <span class="comment">// equivalent to subtract(dst, src1, dst);</span></div></div><!-- fragment --><p> The input arrays and the output array can all have the same or different depths. For example, you can subtract to 8-bit unsigned arrays and store the difference in a 16-bit signed array. Depth of the output array is determined by dtype parameter. In the second and third cases above, as well as in the first case, when <a class="el" href="../../d0/daf/group__projection.html#ga8b5e5413af41caf3f2a0bbf4cdf517a8" title="Returns the depth of a point transformed by a rigid transform. ">src1.depth()</a> == <a class="el" href="../../d0/daf/group__projection.html#ga8b5e5413af41caf3f2a0bbf4cdf517a8" title="Returns the depth of a point transformed by a rigid transform. ">src2.depth()</a>, dtype can be set to the default -1. In this case the output array will have the same depth as the input array, be it src1, src2 or both. </p><dl class="section note"><dt>Note</dt><dd>Saturation is not applied when the output array has the depth CV_32S. You may even get result of an incorrect sign in the case of overflow. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src1</td><td>first input array or a scalar. </td></tr>
    <tr><td class="paramname">src2</td><td>second input array or a scalar. </td></tr>
    <tr><td class="paramname">dst</td><td>output array of the same size and the same number of channels as the input array. </td></tr>
    <tr><td class="paramname">mask</td><td>optional operation mask; this is an 8-bit single channel array that specifies elements of the output array to be changed. </td></tr>
    <tr><td class="paramname">dtype</td><td>optional depth of the output array </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d2/de8/group__core__array.html#ga10ac1bfb180e2cfda1701d06c24fdbd6" title="Calculates the per-element sum of two arrays or an array and a scalar. ">add</a>, <a class="el" href="../../d2/de8/group__core__array.html#gafafb2513349db3bcff51f54ee5592a19" title="Calculates the weighted sum of two arrays. ">addWeighted</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga9e0845db4135f55dcf20227402f00d98" title="Calculates the sum of a scaled array and another array. ">scaleAdd</a>, <a class="el" href="../../d3/d63/classcv_1_1Mat.html#adf88c60c5b4980e05bb556080916978b" title="Converts an array to another data type with optional scaling. ">Mat::convertTo</a> </dd></dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../dd/d93/samples_2cpp_2image_alignment_8cpp-example.html#a49">samples/cpp/image_alignment.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="ga716e10a2dd9e228e4d3c95818f106722"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga716e10a2dd9e228e4d3c95818f106722">◆ </a></span>sum()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> cv::sum </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src</em></td><td>)</td>
          <td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.sumElems(</td><td class="paramname">src</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Calculates the sum of array elements. </p>
<p>The function <a class="el" href="../../d2/de8/group__core__array.html#ga716e10a2dd9e228e4d3c95818f106722" title="Calculates the sum of array elements. ">cv::sum</a> calculates and returns the sum of array elements, independently for each channel. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input array that must have from 1 to 4 channels. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d2/de8/group__core__array.html#gaa4b89393263bb4d604e0fe5986723914" title="Counts non-zero array elements. ">countNonZero</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga191389f8a0e58180bb13a727782cd461" title="Calculates an average (mean) of array elements. ">mean</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga846c858f4004d59493d7c6a4354b301d">meanStdDev</a>, <a class="el" href="../../dc/d84/group__core__basic.html#ga4e556cb8ad35a643a1ea66e035711bb9">norm</a>, <a class="el" href="../../d2/de8/group__core__array.html#gab473bf2eb6d14ff97e89b355dac20707" title="Finds the global minimum and maximum in an array. ">minMaxLoc</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga4b78072a303f29d9031d56e5638da78e" title="Reduces a matrix to a vector. ">reduce</a> </dd></dl>
</div>
</div>
<a id="gab4e620e6fc6c8a27bb2be3d50a840c0b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab4e620e6fc6c8a27bb2be3d50a840c0b">◆ </a></span>SVBackSubst()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::SVBackSubst </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>u</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>vt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>rhs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.SVBackSubst(</td><td class="paramname">w, u, vt, rhs[, dst]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>wrap <a class="el" href="../../df/df7/classcv_1_1SVD.html#a7c28935c9999977dbe34285d13d43190" title="performs back substitution ">SVD::backSubst</a> </p>
</div>
</div>
<a id="gab477b5b7b39b370bb03e75b19d2d5109"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab477b5b7b39b370bb03e75b19d2d5109">◆ </a></span>SVDecomp()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::SVDecomp </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>u</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>vt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>flags</em> = <code>0</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>w, u, vt</td><td>=</td><td>cv.SVDecomp(</td><td class="paramname">src[, w[, u[, vt[, flags]]]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>wrap <a class="el" href="../../df/df7/classcv_1_1SVD.html#a76f0b2044df458160292045a3d3714c6" title="decomposes matrix and stores the results to user-provided matrices ">SVD::compute</a> </p>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../d0/d92/samples_2cpp_2tutorial_code_2features2D_2Homography_2pose_from_homography_8cpp-example.html#a24">samples/cpp/tutorial_code/features2D/Homography/pose_from_homography.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="ga75843061d150ad6564b5447e38e57722"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga75843061d150ad6564b5447e38e57722">◆ </a></span>theRNG()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d1/dd6/classcv_1_1RNG.html">RNG</a>&amp; cv::theRNG </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Returns the default random number generator. </p>
<p>The function <a class="el" href="../../d2/de8/group__core__array.html#ga75843061d150ad6564b5447e38e57722" title="Returns the default random number generator. ">cv::theRNG</a> returns the default random number generator. For each thread, there is a separate random number generator, so you can use the function safely in multi-thread environments. If you just need to get a single random number using this generator or initialize an array, you can use randu or randn instead. But if you are going to generate many random numbers inside a loop, it is much faster to use this function to retrieve the generator and then use RNG::operator _Tp() . </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d1/dd6/classcv_1_1RNG.html" title="Random Number Generator. ">RNG</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga1ba1026dca0807b27057ba6a49d258c0" title="Generates a single uniformly-distributed random number or an array of random numbers. ">randu</a>, <a class="el" href="../../d2/de8/group__core__array.html#gaeff1f61e972d133a04ce3a5f81cf6808" title="Fills the array with normally distributed random numbers. ">randn</a> </dd></dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../d5/d04/samples_2cpp_2convexhull_8cpp-example.html#a5">samples/cpp/convexhull.cpp</a>, <a class="el" href="../../d1/d17/samples_2cpp_2ffilldemo_8cpp-example.html#a6">samples/cpp/ffilldemo.cpp</a>, <a class="el" href="../../de/d70/samples_2cpp_2kalman_8cpp-example.html#a27">samples/cpp/kalman.cpp</a>, <a class="el" href="../../df/dee/samples_2cpp_2minarea_8cpp-example.html#a4">samples/cpp/minarea.cpp</a>, and <a class="el" href="../../d4/d40/samples_2cpp_2watershed_8cpp-example.html#a32">samples/cpp/watershed.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="ga3419ac19c7dcd2be4bd552a23e147dd8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga3419ac19c7dcd2be4bd552a23e147dd8">◆ </a></span>trace()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> cv::trace </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>mtx</em></td><td>)</td>
          <td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.trace(</td><td class="paramname">mtx</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Returns the trace of a matrix. </p>
<p>The function <a class="el" href="../../dc/d84/group__core__basic.html#ga36ad18631177b097a38198c4e83c6e2b">cv::trace</a> returns the sum of the diagonal elements of the matrix mtx . </p><p class="formulaDsp">
\[\mathrm{tr} ( \texttt{mtx} ) = \sum _i \texttt{mtx} (i,i)\]
</p>
 <dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">mtx</td><td>input matrix. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="ga393164aa54bb9169ce0a8cc44e08ff22"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga393164aa54bb9169ce0a8cc44e08ff22">◆ </a></span>transform()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::transform </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>m</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.transform(</td><td class="paramname">src, m[, dst]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Performs the matrix transformation of every array element. </p>
<p>The function <a class="el" href="../../d2/de8/group__core__array.html#ga393164aa54bb9169ce0a8cc44e08ff22" title="Performs the matrix transformation of every array element. ">cv::transform</a> performs the matrix transformation of every element of the array src and stores the results in dst : </p><p class="formulaDsp">
\[\texttt{dst} (I) = \texttt{m} \cdot \texttt{src} (I)\]
</p>
<p> (when m.cols=src.channels() ), or </p><p class="formulaDsp">
\[\texttt{dst} (I) = \texttt{m} \cdot [ \texttt{src} (I); 1]\]
</p>
<p> (when m.cols=src.channels()+1 )</p>
<p>Every element of the N -channel array src is interpreted as N -element vector that is transformed using the M x N or M x (N+1) matrix m to M-element vector - the corresponding element of the output array dst .</p>
<p>The function may be used for geometrical transformation of N -dimensional points, arbitrary linear color space transformation (such as various kinds of RGB to YUV transforms), shuffling the image channels, and so forth. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input array that must have as many channels (1 to 4) as m.cols or m.cols-1. </td></tr>
    <tr><td class="paramname">dst</td><td>output array of the same size and depth as src; it has as many channels as m.rows. </td></tr>
    <tr><td class="paramname">m</td><td>transformation 2x2 or 2x3 floating-point matrix. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d2/de8/group__core__array.html#gad327659ac03e5fd6894b90025e6900a7" title="Performs the perspective matrix transformation of vectors. ">perspectiveTransform</a>, <a class="el" href="../../da/d54/group__imgproc__transform.html#ga8f6d378f9f8eebb5cb55cd3ae295a999" title="Calculates an affine transform from three pairs of the corresponding points. ">getAffineTransform</a>, <a class="el" href="../../d9/d0c/group__calib3d.html#ga27865b1d26bac9ce91efaee83e94d4dd" title="Computes an optimal affine transformation between two 2D point sets. ">estimateAffine2D</a>, <a class="el" href="../../da/d54/group__imgproc__transform.html#ga0203d9ee5fcd28d40dbc4a1ea4451983" title="Applies an affine transformation to an image. ">warpAffine</a>, <a class="el" href="../../da/d54/group__imgproc__transform.html#gaf73673a7e8e18ec6963e3774e6a94b87" title="Applies a perspective transformation to an image. ">warpPerspective</a> </dd></dl>
</div>
</div>
<a id="ga46630ed6c0ea6254a35f447289bd7404"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga46630ed6c0ea6254a35f447289bd7404">◆ </a></span>transpose()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::transpose </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.transpose(</td><td class="paramname">src[, dst]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Transposes a matrix. </p>
<p>The function <a class="el" href="../../d2/de8/group__core__array.html#ga46630ed6c0ea6254a35f447289bd7404" title="Transposes a matrix. ">cv::transpose</a> transposes the matrix src : </p><p class="formulaDsp">
\[\texttt{dst} (i,j) = \texttt{src} (j,i)\]
</p>
 <dl class="section note"><dt>Note</dt><dd>No complex conjugation is done in case of a complex matrix. It should be done separately if needed. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input array. </td></tr>
    <tr><td class="paramname">dst</td><td>output array of the same type as src. </td></tr>
  </table>
  </dd>
</dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../d0/df8/samples_2cpp_2train_HOG_8cpp-example.html#a14">samples/cpp/train_HOG.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="ga744f53b69f6e4f12156cdde4e76aed27"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga744f53b69f6e4f12156cdde4e76aed27">◆ </a></span>vconcat() <span class="overload">[1/3]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::vconcat </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> * </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t </td>
          <td class="paramname"><em>nsrc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.vconcat(</td><td class="paramname">src[, dst]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>Applies vertical concatenation to given matrices. </p>
<p>The function vertically concatenates two or more <a class="el" href="../../d3/d63/classcv_1_1Mat.html" title="n-dimensional dense array class ">cv::Mat</a> matrices (with the same number of cols). </p><div class="fragment"><div class="line"><a class="code" href="../../d3/d63/classcv_1_1Mat.html">cv::Mat</a> matArray[] = { <a class="code" href="../../d3/d63/classcv_1_1Mat.html">cv::Mat</a>(1, 4, <a class="code" href="../../d1/d1b/group__core__hal__interface.html#ga81df635441b21f532fdace401e04f588">CV_8UC1</a>, <a class="code" href="../../d1/da0/classcv_1_1Scalar__.html">cv::Scalar</a>(1)),</div><div class="line">                       <a class="code" href="../../d3/d63/classcv_1_1Mat.html">cv::Mat</a>(1, 4, <a class="code" href="../../d1/d1b/group__core__hal__interface.html#ga81df635441b21f532fdace401e04f588">CV_8UC1</a>, <a class="code" href="../../d1/da0/classcv_1_1Scalar__.html">cv::Scalar</a>(2)),</div><div class="line">                       <a class="code" href="../../d3/d63/classcv_1_1Mat.html">cv::Mat</a>(1, 4, <a class="code" href="../../d1/d1b/group__core__hal__interface.html#ga81df635441b21f532fdace401e04f588">CV_8UC1</a>, <a class="code" href="../../d1/da0/classcv_1_1Scalar__.html">cv::Scalar</a>(3)),};</div><div class="line"></div><div class="line"><a class="code" href="../../d3/d63/classcv_1_1Mat.html">cv::Mat</a> out;</div><div class="line"><a class="code" href="../../d2/de8/group__core__array.html#ga744f53b69f6e4f12156cdde4e76aed27">cv::vconcat</a>( matArray, 3, out );</div><div class="line"><span class="comment">//out:</span></div><div class="line"><span class="comment">//[1,   1,   1,   1;</span></div><div class="line"><span class="comment">// 2,   2,   2,   2;</span></div><div class="line"><span class="comment">// 3,   3,   3,   3]</span></div></div><!-- fragment --> <dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input array or vector of matrices. all of the matrices must have the same number of cols and the same depth. </td></tr>
    <tr><td class="paramname">nsrc</td><td>number of matrices in src. </td></tr>
    <tr><td class="paramname">dst</td><td>output array. It has the same number of cols and depth as the src, and the sum of rows of the src. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d2/de8/group__core__array.html#gaf9771c991763233866bf76b5b5d1776f" title="Applies horizontal concatenation to given matrices. ">cv::hconcat(const Mat*, size_t, OutputArray)</a>, </dd>
<dd>
<a class="el" href="../../d2/de8/group__core__array.html#ga4676b1376cdc4e528dab6bd9edc51c1a">cv::hconcat(InputArrayOfArrays, OutputArray)</a> and </dd>
<dd>
<a class="el" href="../../d2/de8/group__core__array.html#gaab5ceee39e0580f879df645a872c6bf7">cv::hconcat(InputArray, InputArray, OutputArray)</a> </dd></dl>
</div>
</div>
<a id="gaad07cede730cdde64b90e987aad179b8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaad07cede730cdde64b90e987aad179b8">◆ </a></span>vconcat() <span class="overload">[2/3]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::vconcat </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>src2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.vconcat(</td><td class="paramname">src[, dst]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p><div class="fragment"><div class="line"><a class="code" href="../../df/dfc/classcv_1_1Mat__.html">cv::Mat_&lt;float&gt;</a> A = (<a class="code" href="../../df/dfc/classcv_1_1Mat__.html">cv::Mat_&lt;float&gt;</a>(3, 2) &lt;&lt; 1, 7,</div><div class="line">                                              2, 8,</div><div class="line">                                              3, 9);</div><div class="line"><a class="code" href="../../df/dfc/classcv_1_1Mat__.html">cv::Mat_&lt;float&gt;</a> B = (<a class="code" href="../../df/dfc/classcv_1_1Mat__.html">cv::Mat_&lt;float&gt;</a>(3, 2) &lt;&lt; 4, 10,</div><div class="line">                                              5, 11,</div><div class="line">                                              6, 12);</div><div class="line"></div><div class="line"><a class="code" href="../../d3/d63/classcv_1_1Mat.html">cv::Mat</a> C;</div><div class="line"><a class="code" href="../../d2/de8/group__core__array.html#ga744f53b69f6e4f12156cdde4e76aed27">cv::vconcat</a>(A, B, C);</div><div class="line"><span class="comment">//C:</span></div><div class="line"><span class="comment">//[1, 7;</span></div><div class="line"><span class="comment">// 2, 8;</span></div><div class="line"><span class="comment">// 3, 9;</span></div><div class="line"><span class="comment">// 4, 10;</span></div><div class="line"><span class="comment">// 5, 11;</span></div><div class="line"><span class="comment">// 6, 12]</span></div></div><!-- fragment --> <dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src1</td><td>first input array to be considered for vertical concatenation. </td></tr>
    <tr><td class="paramname">src2</td><td>second input array to be considered for vertical concatenation. </td></tr>
    <tr><td class="paramname">dst</td><td>output array. It has the same number of cols and depth as the src1 and src2, and the sum of rows of the src1 and src2. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="ga558e169e15adcc46b8cdcc6cd215070f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga558e169e15adcc46b8cdcc6cd215070f">◆ </a></span>vconcat() <span class="overload">[3/3]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::vconcat </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga606feabe3b50ab6838f1ba89727aa07a">InputArrayOfArrays</a> </td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>dst</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>dst</td><td>=</td><td>cv.vconcat(</td><td class="paramname">src[, dst]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">opencv2/core.hpp</a>&gt;</code></p>
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p><div class="fragment"><div class="line">std::vector&lt;cv::Mat&gt; matrices = { <a class="code" href="../../d3/d63/classcv_1_1Mat.html">cv::Mat</a>(1, 4, <a class="code" href="../../d1/d1b/group__core__hal__interface.html#ga81df635441b21f532fdace401e04f588">CV_8UC1</a>, <a class="code" href="../../d1/da0/classcv_1_1Scalar__.html">cv::Scalar</a>(1)),</div><div class="line">                                  <a class="code" href="../../d3/d63/classcv_1_1Mat.html">cv::Mat</a>(1, 4, <a class="code" href="../../d1/d1b/group__core__hal__interface.html#ga81df635441b21f532fdace401e04f588">CV_8UC1</a>, <a class="code" href="../../d1/da0/classcv_1_1Scalar__.html">cv::Scalar</a>(2)),</div><div class="line">                                  <a class="code" href="../../d3/d63/classcv_1_1Mat.html">cv::Mat</a>(1, 4, <a class="code" href="../../d1/d1b/group__core__hal__interface.html#ga81df635441b21f532fdace401e04f588">CV_8UC1</a>, <a class="code" href="../../d1/da0/classcv_1_1Scalar__.html">cv::Scalar</a>(3)),};</div><div class="line"></div><div class="line"><a class="code" href="../../d3/d63/classcv_1_1Mat.html">cv::Mat</a> out;</div><div class="line"><a class="code" href="../../d2/de8/group__core__array.html#ga744f53b69f6e4f12156cdde4e76aed27">cv::vconcat</a>( matrices, out );</div><div class="line"><span class="comment">//out:</span></div><div class="line"><span class="comment">//[1,   1,   1,   1;</span></div><div class="line"><span class="comment">// 2,   2,   2,   2;</span></div><div class="line"><span class="comment">// 3,   3,   3,   3]</span></div></div><!-- fragment --> <dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>input array or vector of matrices. all of the matrices must have the same number of cols and the same depth </td></tr>
    <tr><td class="paramname">dst</td><td>output array. It has the same number of cols and depth as the src, and the sum of rows of the src. same depth. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.6-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 2 2021 11:36:40 for OpenCV by  <a href="http://www.doxygen.org/index.html">
<img alt="doxygen" class="footer" src="../../doxygen.png"/>
</a> 1.8.13
</small></address>
<script type="text/javascript">
//<![CDATA[
addTutorialsButtons();
//]]>
</script>
</body>
</html>
